Stream.read

Reads bytes from the specified stream in to the specified buffer

Notes: The position and length to read is specified by the slice of buffer. Use slicing operation to specify a range to read to.

class Stream
@nogc nothrow @safe abstract
ptrdiff_t
read
(
ubyte[] buffer
)

Return Value

Type: ptrdiff_t

The amount of bytes read from the stream, or a StreamError.

See Also

Meta