VocabularyalienInputs and outputsc-ptr | a c-ptr |
addr | a non-negative integer |
Word descriptionOutputs the address of an alien.
NotesTaking the address of a
byte-array is explicitly prohibited since byte arrays can be moved by the garbage collector between the time the address is taken, and when it is accessed. If you need to pass pointers to C functions which will persist across alien calls, you must allocate unmanaged memory instead. See
Manual memory management.
See also<alien>,
<displaced-alien>Definition