Class brl.datastream.DataStream - leonard-thieu/monkey GitHub Wiki
A datastream allows you to read and write data to and from a databuffer in a stream-like way.
Stream
New ( data:DataBuffer, offset:Int )
New ( data:DataBuffer, offset:Int, length:Int )
A datastream allows you to read and write data to and from a databuffer in a stream-like way.
Method New ( data:DataBuffer, offset:Int )
Creates a datastream that wraps the specified databuffer.
The wrapped range of data begins at byte address offset and extends to the end of the buffer. Data outside this range will not be modified by any stream operations.
Method New ( data:DataBuffer, offset:Int, length:Int )
Creates a datastream that wraps the specified databuffer.
The wrapped range of data begins at byte address offset and extends for length bytes. Data outside of this range will not be modified by any stream operations.
Method Data : DataBuffer ()
Returns the databuffer object wrapped by this datastream.
Method Length : Int ()
Returns the length of the data in the databuffer object wrapped by this datastream.
Method Offset : Int ()
Returns the start offset of the data in the databuffer object wrapped by this datastream.