File tom/ByteStream


class tom.ByteStream

Instances of the ByteStream class are an abstraction of the UNIX file descriptors.

Inherits

State supers
Descriptor, InputOutputStream

InputStream

instance tom.ByteStream

methods

byte
  read;
Read a byte and return it, raising an exception on end-of-file or error.

int
  read;
Read a byte and return it, returning EOF on end-of-file.

int
  readRange (int, int) (start, num)
       into MutableByteArray buffer;
Have the buffer read at most num bytes from the receiving ByteStream starting at start.

void
  write byte b;

OutputStream

int
  write byte b;
Undocumented.

int
  writeBytes int num
        from pointer address;
Undocumented.


Generated by tm 1.01.