StreamReader.read

Read up to $(D_PSYMBOL n) bytes. If $(D_PSYMBOL n) is not provided, or set to -1, read until EOF and return all read bytes.

If the EOF was received and the internal buffer is empty, return an empty array.

class StreamReader
const(void)[]
read
(
ptrdiff_t n = -1
)

Meta