std:std.stream.Stream.Write

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

Writes data to the stream from memory.

Writes count bytes of data to the stream from either a raw memory pointer or a databuffer.

Returns the number of bytes actually written

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