BufferedOutput.writer

Write into this buffer.

Exposes the raw data buffer at the current _write position, The delegate is provided with a void[] representing space available within the buffer at the current _write position.

The delegate should return the appropriate number of bytes if it writes valid content, or Eof on error.

class BufferedOutput
final
size_t
writer
(
scope size_t delegate
(
void[]
)
dg
)

Parameters

dg size_t delegate
(
void[]
)

The callback to provide buffer access to.

Return Value

Type: size_t

the delegate return's value

Meta