StreamShim.read

Fills the given buffer with data from the stream.

Note: This is not guaranteed to read the entire buffer from the stream. If T.sizeof is larger than 1, it is possible that an element is partially read. If a guarantee that the entire buffer is filled, use readExactly instead.

struct StreamShim(Stream)
static if(isSource!Stream)
size_t
read
(
T
)
(
T[] buf
)
if (
isStream!Stream
)

Return Value

Type: size_t

The number of bytes read.

Meta