BinaryReader.readBytes

Reads array of bytes from input stream.

Returned array may be smaller than requested if end of input occured.

struct BinaryReader(Range = ubyte[])
ubyte[]
readBytes
(
size_t bytes
)
if (
isInputRange!Range &&
is(ElementType!Range == ubyte)
)

Parameters

bytes
Type: size_t

Number of bytes to read

Return Value

Type: ubyte[]

Array of bytes read

Meta