InputStream.read

Fills the preallocated array 'bytes' with data from the stream.

This function will continue read from the stream until the buffer has been fully filled.

  1. size_t read(ubyte[] dst, IOMode mode)
  2. void read(ubyte[] dst)
    interface InputStream
    @safe final
    void
    read
    (
    scope ubyte[] dst
    )

Parameters

dst ubyte[]

The buffer into which to write the data that was read

Throws

An exception if the operation reads past the end of the stream

See Also

readOnce, tryRead

Meta