Buffer.memset

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

Fills buf with size bytes with val starting from offset.

Parameters

offsetthe offset in buffer
valthe value to set
sizethe size to set

Returns

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

when buffer did not contain enough data.