SPVM::IO::Handle - I/O Handling
SPVM::IO::Handle is the SPVM's IO::Handle class for I/O handling.
SPVM::IO::Handle
IO::Handle
use IO::Handle; my $handle = IO::Handle->new; $handle->set_autoflush(1);
has autoflush : rw byte;
has input_line_number : ro int;
has opened : ro protected int;
has blocking_flag : rw protected int;
static method new : IO::Handle ($options : object[]);
method init : void ($options = undef : object[]);
method close : int ();
method eof : int ();
method fileno : int ();
method getc : int ();
method print : int ($string : string);
method say : int ($string : string);
method printf : int ($format : string, $args : object[]...);
method clearerr : void ();
method error : int ();
method flush : int ();
method ungetc : int ($c : int);
method printflush : int ($string : string);
method truncate : int ($legnth : long);
method ioctl : int ($request : int, $request_arg = undef : object of Byte|Short|Int|Long|Float|Double|object);
method sync : int ();
method stat : int ($stat : Sys::IO::Stat);
method getline : string ();
method getlines : string ();
method fcntl : int ($command : int, $command_arg = undef : object of Int|Sys::IO::Flock|object);
method blocking : void ($blocking : int);
method write : int ($buffer : string, $length : int, $offset = 0 : int);
method read : int ($buffer : mutable string, $length : int, $offset = 0 : int);
method syswrite : int ($buffer : string, $length : int, $offset = 0 : int);
method sysread : int ($buffer : mutable string, $length : int, $offset = 0 : int);
IO::File
IO::Socket
IO::Socket::INET
SPVM::IO::Handle is the Perl's IO::Handle porting to SPVM.
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM::IO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM::IO
CPAN shell
perl -MCPAN -e shell install SPVM::IO
For more information on module installation, please visit the detailed CPAN module installation guide.