NAME

SPVM::IO::Handle::Interface - An interface for I/O Handling

Description

SPVM::IO::Handle::Interface is the SPVM's IO::Handle::Interface interface.

Usage

interface IO::Handle::Interface;

Interface Methods

has_interfaces

required method has_interfaces : int ();

blocking_flag

method blocking_flag : int ();

close

method close : int ();

eof

method eof : int ();

fileno

method fileno : int ();

getc

method getc : int ();

print

method print : int ($string : string);

printf

method printf : int ($format : string, $args : object[]...);

say

method say : int ($string : string);

clearerr

method clearerr : void ();

error

method error : int ();

flush

method flush : int ();

truncate

method truncate : int ($legnth : long);

ioctl

method ioctl : int ($request : int, $request_arg = undef : object of Byte|Short|Int|Long|Float|Double|object);

ungetc

method ungetc : int ($c : int);

sync

method sync : int ();

stat

method stat : int ($stat : Sys::IO::Stat);

blocking

method blocking : void ($blocking : int);

fcntl

method fcntl : int ($command : int, $command_arg = undef : object of Int|Sys::IO::Flock|object);

write

method write : int ($buffer : string, $length : int, $offset = 0 : int);

read

method read : int ($buffer : mutable string, $length : int, $offset = 0 : int);

syswrite

method syswrite : int ($buffer : string, $length : int, $offset = 0 : int);

sysread

method sysread : int ($buffer : mutable string, $length : int, $offset = 0 : int);

getline

method getline : string ();

getlines

method getlines : string ();

opened

method opened : int ();

Well Known Implementation Classes

IO::Handle

IO::Handle