Buffer:clear

Edit

Clears a range of data in the Buffer to a value.

Buffer:clear(offset, extent, value)

Arguments

NameTypeDefaultDescription
offsetnumber0 The offset of the range of the Buffer to clear, in bytes. Must be a multiple of 4.
extentnumbernil The number of bytes to clear. If nil, clears to the end of the Buffer. Must be a multiple of 4.
valuenumber0x00000000 The value to clear to. This will be interpreted as a 32 bit number, which will be repeated across the clear range.

Returns

Nothing

See also