Skip to content

BoxPair

tevelee edited this page Jul 21, 2026 · 1 revision

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 Typealiases
Global Variables
Global Functions

Clone this wiki locally