FixIO Documentation
Back to summary
import "io/stream";
ArrayStream class
Stream backed by arrays.
Inherits from Stream.
Functions
static function create(): ArrayStream
static function create(in_buf: Byte[]): ArrayStream
static function create(in_buf: Byte[], out_buf: Byte[]): ArrayStream
-
Creates a new array stream. You can provide input and output buffers. The
output buffer is created automatically on first write if not provided.
function reset()
-
Resets the stream, the reading position is set back to beginning and
the output buffer is cleared.
function get_output(): Byte[]
-
Returns the output buffer.