Skip to content

swift_deallocClassInstance(______)

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

swift_deallocClassInstance(_:_:_:)

Deallocate the given memory.

@_silgen_name("swift_deallocClassInstance")
public func swift_deallocClassInstance(
    _ heapObject: UnsafeRawPointer,
    _ allocatedSize: Int,
    _ alignMask: Int
)

It must have been returned by swift_allocObject, possibly used as an Objective-C class instance, and the strong reference must have the RC_DEALLOCATING_FLAG flag set, but otherwise the object is in an unknown state.

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