Skip to content

BoxPair

Azoy edited this page May 6, 2021 · 2 revisions

BoxPair

A box pair is the pair of heap object + value within said heap object. When you allocate a new box, you're given a pointer to the heap object along with a pointer to the value inside the heap object.

public struct BoxPair 

Properties

heapObj

A pointer to the allocated heap object.

public let heapObj: UnsafePointer<HeapObject>

buffer

A pointer to the value inside the heap object.

public let buffer: UnsafeRawPointer
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally