DANGEROUS group of functions and methods manipulating memory.
This group of functions is meant to manipulate directly memory. It is useful to support raw bindings from external C modules returning raw memory areas, or requiring raw memory areas to be passed to them.
In Falcon, raw memory pointers are just represented as 64-bit integers, eventually cast down to proper sizes on different architectures. In short, they are integers that can be directly modified by the Falcon script and fed in the library.
Messing with functions in this group is the fastest and safest way to find troubles. Avoid them unless it is necessary to deal with raw pointers coming from outer bindings.
Creates a memory buffer to store raw memory coming from external providers.
MemBufFromPtr( data, size, [wordSize] )
data | A pointer to the raw memory (as an integer value). |
size | The maximum size of the memory. |
wordSize | Size of each word in bytes (1, 2, 3 or 4). |
Intentionally left undocumented. Don't use if you don't know what you're doing.