import "io/stream";
Stream backed by arrays.
For performance reasons it is recommended to use the type directly instead of casting it to the generic Stream class as this class statically replaces the primitive reading/writing functions.
Inherits from Stream.
static function create(): ArrayStream
static function create(in_buf: Byte[]): ArrayStream
static function create(in_buf: Byte[], out_buf: Byte[]): ArrayStream
function reset()
function reset(in_buf: Byte[])
function reset(in_buf: Byte[], out_buf: Byte[])
function get_position(): Integer
function set_position(pos: Integer)
function get_output(): Byte[]
function read_line(buf: Byte[]): Byte[]
function read_line(buf: Byte[], max_bytes: Integer): Byte[]
null
when the end of the stream is reached.
function read_null_string(): Byte[]
function read_null_string(str: Byte[]): Byte[]
function read_null_string(str: Byte[], max_bytes: Integer): Byte[]