Stream.write

Writes bytes into the stream.

class Stream
abstract
const(ubyte[])
write
(
scope const ubyte[] data
)

Parameters

data ubyte[]

The data to write.

Return Value

Type: const(ubyte[])

A slice of data, specifying which portion of it has been written to the stream.

Throws

StreamCannotWriteException if this stream does not support writing. StreamDisposedException if this stream has been disposed of.

Meta