std.stream.Stream.Read - nitrologic/monkey2 GitHub Wiki

std::std.stream.std.stream.Stream.Read

Method Read:monkey:monkey.types.Int( buf:Void Ptr,count:monkey:monkey.types.Int )
Method Read:monkey:monkey.types.Int( data:std:std.memory.DataBuffer,offset:monkey:monkey.types.Int,count:monkey:monkey.types.Int )

Reads data from the stream into memory.

Reads count bytes of data from the stream into either a raw memory pointer or a databuffer.

Returns the number of bytes actually read.

Parameters
buf buf A pointer to the memory to read the data into.
data data The databuffer to read the data into.
count count The number of bytes to read from the stream.