v2025.6.2
All Bundles

OutputStream

An abstract output stream

Operations

Close

Closes the stream

method : public : virutal : Close() ~ Nil

WriteBuffer

Writes bytes from a buffer

method : public : virutal : WriteBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Int

Parameters

NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferByteinput buffer

Return

TypeDescription
Intnumber of values written

WriteBuffer

Writes characters from a buffer

method : public : virutal : WriteBuffer(offset:Int, num:Int, buffer:Char[]) ~ Int

Parameters

NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferCharinput buffer

Return

TypeDescription
Intnumber of values written

WriteByte

Writes a byte

method : public : virutal : WriteByte(b:Int) ~ Bool

Parameters

NameTypeDescription
bIntbyte to write

Return

TypeDescription
Booltrue if byte was written, false otherwise

WriteString

Writes a character string

method : public : virutal : WriteString(str:System.String) ~ Nil

Parameters

NameTypeDescription
strStringstring to be written