Buffer:clear
EditClears a range of data in the Buffer to a value.
Buffer:clear(offset, extent, value)Arguments
| Name | Type | Default | Description |
| offset | number | 0 | The offset of the range of the Buffer to clear, in bytes. Must be a multiple of 4. |
| extent | number | nil |
The number of bytes to clear. If nil, clears to the end of the Buffer. Must be a multiple of 4.
|
| value | number | 0x00000000 | The value to clear to. This will be interpreted as a 32 bit number, which will be repeated across the clear range. |
Returns
Nothing