Class IODev

The basic device-based Input and Output stream. This uses the OS's native file handle to communicate using physical devices.

class IODev ;

Constructors

NameDescription
thisConstruct an input stream based on the file descriptor
thisConstruct an input stream based on a FILE *. The only difference between this and the fd version is the close routine will close the FILE * if valid.
thisOpen a file. the specification for mode is identical to the linux man page for fopen

Properties

NameTypeDescription
handle[get]intGet the OS-specific handle for this File

Methods

NameDescription
closeClose the stream. This releases any resources from the object.
readRead data from the stream.
seekAbsoluteSeek the stream. seekCurrent seeks from the current stream position, seekAboslute seeks to the given position offset from the beginning of the stream, and seekEnd seeks to the position offset bytes from the end of the stream (backwards).
seekCurrentSeek the stream. seekCurrent seeks from the current stream position, seekAboslute seeks to the given position offset from the beginning of the stream, and seekEnd seeks to the position offset bytes from the end of the stream (backwards).
seekEndSeek the stream. seekCurrent seeks from the current stream position, seekAboslute seeks to the given position offset from the beginning of the stream, and seekEnd seeks to the position offset bytes from the end of the stream (backwards).
writeWrite a chunk of data to the output stream

Aliases

NameDescription
putWrite a chunk of data to the output stream