Array.writer

Write into this buffer.

class Array
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

Returns whatever the delegate returns.

Remarks: 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 IConduit.Eof on error.

Meta