Function swift_runtime_sys::root::swift::swift_initStackObject

source ·
pub unsafe extern "C" fn swift_initStackObject(
    metadata: *const HeapMetadata,
    object: *mut HeapObject,
) -> *mut HeapObject
Expand description

Initializes the object header of a stack allocated object.

\param metadata - the object’s metadata which is stored in the header \param object - the pointer to the object’s memory on the stack \returns the passed object pointer.