chickadee » jiffi » armor-address

armor-address objprocedure

Returns the memory address of the bare data that obj refers to. obj can be an instance of a type defined with define-armor-type, or a pointer, locative, blob, or #f (which is treated as a null pointer, address 0).

The memory address of locatives, blobs, and armors wrapping locatives or blobs, may change during garbage collection! If you need the memory address of those things to never change, you can use object-evict to evict the blob or the locative's object before wrapping it in armor.