Name
SPVM::Sys::IO::Dirent - struct dirent in the C language
Description
Sys::IO::Dirent class in SPVM represents struct dirent in the C language.
Usage
use Sys;
use Sys::IO::DirStream;
my $dh_ref = [(Sys::IO::DirStream)undef];
Sys->opendir($dh_ref, $test_dir);
my $dh = $dh_ref->[0];
my $dirent = Sys->readdir($dh);
my $d_name = $dirent->d_name;
Details
This class is a pointer class. The pointer the instance has is set to a struct dirent
object.
Class Methods
d_ino
method d_ino : int ();
Returns d_ino
.
d_reclen
method d_reclen : int ();
Returns d_reclen
.
d_name
method d_name : string ();
Gets and copies d_name
and returns it.
d_off
method d_off : long;
Returns d_off
.
d_type
method d_type : int ();
Returns d_type
.
See Also
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License