Stream.read

Attempts to read up to len bytes from stream into buf.

class Stream
ptrdiff_t
read
(
ubyte[] buf
)

Parameters

buf ubyte[]

buffer

Return Value

Type: ptrdiff_t

the number of bytes read or %-1 on fail.