Skip to content

Std stream stream read

std:std.stream.Stream.Read

Method Read:Int( buf:Void Ptr,count:Int )#
Method Read:Int( data:DataBuffer,offset:Int,count: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.