Function swift_runtime_sys::root::swift::swift_initStaticObject
source · pub unsafe extern "C" fn swift_initStaticObject(
metadata: *const HeapMetadata,
object: *mut HeapObject,
) -> *mut HeapObject
Expand description
Initializes the object header of a static object which is statically allocated in the data section.
\param metadata - the object’s metadata which is stored in the header \param object - the address of the object in the data section. It is assumed that at offset -1 there is a swift_once token allocated. \returns the passed object pointer.