Skip to content

swift_allocBox(__)

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

swift_allocBox(_:)

Creates and returns a structure containing an allocated heap object as well as the value itself following it.

@_silgen_name("swift_allocBox")
public func swift_allocBox(
    _ type: Any.Type
) -> UnsafeRawPointer

Parameters

  • type: The type of the heap object to allocate

Returns

A pointer to the newly allocated box pair

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally