This function gets a pointer to the raw, aligned buffer address.
This is primarily for use with extensions as you can pass this value through to them, allowing them to access the buffer data.
buffer_get_address(buffer);
| Argument | Type | Description |
|---|---|---|
| buffer | Buffer | The index of the buffer to use. |
var _address = buffer_get_address(buff_model);
var _end_address = _address + buffer_get_size(buff_model);
The above code will get the memory address of the buffer indexed in the variable buff_model and then get the memory address for the end of the buffer using the buffer_get_size function, storing both values in local variables for further use.