Skip to content

swift_getCanonicalPrespecializedGenericMetadata(________)

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

swift_getCanonicalPrespecializedGenericMetadata(_:_:_:_:)

swift(>=5.4)

Fetch a uniqued metadata object for the generic nominal type described by the provided description and arguments, adding the canonical prespecializations attached to the type descriptor to the metadata cache on first run.

@_silgen_name("swift_getCanonicalPrespecializedGenericMetadata")
public func swift_getCanonicalPrespecializedGenericMetadata(
    _ request: Int,
    _ arguments: UnsafeRawBufferPointer,
    _ description: UnsafeRawPointer,
    _ token: UnsafeRawPointer
) -> UnsafeRawPointer

In contrast to swift_getGenericMetadata, this function is for use by metadata accessors for which canonical generic metadata has been specialized at compile time.

Parameters

  • request: A specification of the metadata to be returned.
  • arguments: The generic arguments--metadata and witness tables--which which the returned metadata is to have been instantiated with.
  • description: The type descriptor for the generic type whose generic metadata is to have been.
  • token: The token that ensures the prespecialized records are addet to the metadata cache only once.

Returns

The canonical metadata for the specialized generic type described by the provided candidate metadata.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally