Buffer.fill

size_t fill(size_t offset, ubyte[] src)

Copies size bytes from src to buffer at offset.

Parameters

offsetthe offset to fill
srcthe source address

Returns

The amount of bytes copied. This value can be lower than size

when buffer did not contain enough data.