Buffer.memset

Fill buf with size bytes with val starting from offset.

class Buffer
memset

Parameters

offset gsize

the offset in buffer

val ubyte

the value to set

size gsize

the size to set

Return Value

Type: gsize

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

Meta