Skip to content

Std stream stream readall

std:std.stream.Stream.ReadAll

Method ReadAll:Int( buf:Void Ptr,count:Int )#
Method ReadAll:Int( data:DataBuffer,offset:Int,count:Int )#
Method ReadAll:DataBuffer( count:Int )#
Method ReadAll:DataBuffer( )#

Reads as many bytes as possible from a stream into memory.

Continously reads data from a stream until either count bytes are read or the end of stream is reached.

Returns the number of bytes read or the data read.

Parameters
buf buf memory to read bytes into.
data data data buffer to read bytes into.
count count number of bytes to read.