Buffer.memset

Fill buf with size bytes with val starting from offset.

class Buffer
size_t
memset
(
size_t offset
,
ubyte val
,
size_t size
)

Parameters

offset size_t

the offset in buffer

val ubyte

the value to set

size size_t

the size to set

Return Value

Type: size_t

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