Next: , Previous: , Up: iklib pointers   [Index]


6.45.4 Conversion

The following bindings are exported by the libraries (vicare) and (vicare system $foreign) and reexported by the library (vicare ffi).

Function: pointer->integer pointer

Convert the value of pointer to an exact integer value. The result may be a fixnum or a bignum depending on the pointer.

Function: integer->pointer exact-integer

Convert exact-integer to a pointer value. The argument must be non–negative and in the appropriate range for 32-bit or 64-bit platforms. It is guaranteed that:

(integer->pointer (pointer->integer p))

points to the same address as p.