Name

SPVM::Sys::IO::Dirent - struct dirent in the C language

Description

The Sys::IO::Dirent class of 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;

Pointer Class

This class is a pointer class.

Class Methods

d_ino

method d_ino : int ();

Gets d_ino.

d_reclen

method d_reclen : int ();

Gets d_reclen.

d_name

method d_name : string ();

Gets and copies d_name and returns it.

d_off

method d_off : long;

Gets d_off.

d_type

method d_type : int ();

Gets d_type.

See Also

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License