Stream.read

Creates a GC-allocated buffer with a specified size, and attempts to read in a certain amount of bytes.

class Stream
ubyte[]
read
(
size_t amount
)

Parameters

amount size_t

The amount of bytes to read in.

Return Value

Type: ubyte[]

The portion of the buffer that was filled by readToBuffer.

Meta