Data:getFFIPointer
Available since LÖVE 11.3
This function is not supported in earlier versions.
Gets an FFI pointer to the Data.
This function should be preferred instead of Data:getPointer because the latter uses light userdata which can't store more all possible memory addresses on some new ARM64 architectures, when LuaJIT is used.
Use at your own risk. Directly reading from and writing to the raw memory owned by the Data will bypass any safety checks and thread-safety the Data might normally have.
Function
Synopsis
pointer = Data:getFFIPointer( )
Arguments
None.
Returns
cdata pointer
- A raw
void*
pointer to the Data, ornil
if FFI is unavailable.
See Also
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Data:getFFIPointer