Function swift_runtime_sys::root::swift::swift_deallocPartialClassInstance
source · pub unsafe extern "C" fn swift_deallocPartialClassInstance(
object: *mut HeapObject,
type_: *const HeapMetadata,
allocatedSize: usize,
allocatedAlignMask: usize,
)
Expand description
Deallocate the given memory after destroying instance variables.
Destroys instance variables in classes more derived than the given metatype.
It must have been returned by swift_allocObject, possibly used as an Objective-C class instance, and the strong reference must be equal to 1.
\param object - may be null \param type - most derived class whose instance variables do not need to be destroyed \param allocatedSize - the allocated size of the object from the program’s perspective, i.e. the value \param allocatedAlignMask - the alignment requirement that was passed to allocObject