Buffer.fill

Copy @size bytes from @src to @buffer at @offset.

class Buffer
size_t
fill
(
size_t offset
,
ubyte[] src
)

Parameters

offset size_t

the offset to fill

src ubyte[]

the source address

Return Value

Type: size_t

The amount of bytes copied. This value can be lower than @size when @buffer did not contain enough data.

Meta