Skip to content

swift_deallocPartialClassInstance(__)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_deallocPartialClassInstance(_:)

Deallocate the given memory after destroying instance variables.

@_silgen_name("swift_deallocPartialClassInstance")
public func swift_deallocPartialClassInstance(
    _ heapObject: UnsafeRawPointer
)

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.

Parameters

  • heapObject: Never nil.
  • allocatedSize: The allocated size of the object from the. program's perspective, i.e. the value.
  • alignMask: The alignment requirement passed to `swift_allocObject.
Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally