Difference between revisions of "Data:getFFIPointer"
(Created page with "{{newin|11.3|113|type=function}} Gets an [http://luajit.org/ext_ffi.html FFI] pointer to the Data. This function should be preferred instead of Data:getPointer becaus...") |
m (:face) |
||
Line 22: | Line 22: | ||
{{#set:Description=Gets an FFI pointer to the Data.}} | {{#set:Description=Gets an FFI pointer to the Data.}} | ||
== Other Languages == | == Other Languages == | ||
− | {{i18n|Data: | + | {{i18n|Data:getFFIPointer}} |
Revision as of 14:40, 20 July 2019
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.
Function
Synopsis
pointer = Data:getFFIPointer( )
Arguments
None.
Returns
cdata pointer
- A raw
void*
pointer to the Data, ornil
if FFI is unavailable.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info