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 buffer to use. |
var _address = buffer_get_address(buff_model);
var _end_address = _address + buffer_get_size(buff_model);
The above code gets the memory address of the buffer stored in the variable buff_model and then gets the memory address for the end of the buffer by adding the size of the buffer, returned by buffer_get_size, to the address. Both values are stored in local variables for further use.