std.memory.DataStream.New - nitrologic/monkey2 GitHub Wiki
std::std.memory.std.memory.DataStream.New
std:std.memory.DataBuffer,offset:monkey:monkey.types.Int=0 )
Method New:Void( buf:std:std.memory.DataBuffer,offset:monkey:monkey.types.Int,count:monkey:monkey.types.Int )
Method New:Void( buf:Creates a new datastream.
A datastream wraps a databuffer so it can be used as if it were a stream.
In debug mode, a RuntimeError will occur if offset
or count
are outside the range of the databuffer.
Parameters | |
---|---|
data |
data The databuffer to wrap. |
offset |
offset The starting offset. |
count |
count The number of bytes. |