FileReadChannel.read

Read at most s bytes from the channel.

The data is written directly to buf. The lengt of buf determines how much is read.

buf is not resized. Use the returned value.

  1. const(ubyte)[] read(size_t size)
  2. ubyte[] read(ubyte[] buf)
    struct FileReadChannel
    return scope @trusted
    ubyte[]
    read
    (
    ref ubyte[] buf
    )

Meta