Skip to content

swift_getCanonicalSpecializedMetadata(______)

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

swift_getCanonicalSpecializedMetadata(_:_:_:)

swift(>=5.4)

Fetch a uniqued metadata object for the generic nominal type described by the provided candidate metadata, using that candidate metadata if there is not already a canonical metadata.

@_silgen_name("swift_getCanonicalSpecializedMetadata")
public func swift_getCanonicalSpecializedMetadata(
    _ request: Int,
    _ candidate: Any.Type,
    _ cache: UnsafePointer<Any.Type>
) -> UnsafeRawPointer

Parameters

  • request: A specification of the metadata to be returned.
  • candidate: A prespecialized metadata record foa type which is not statically made to be canonical which will be canonicalized if no other canonical metadata exists for the type.
  • cache: A pointer to a cache which will be set to the canonical metadata record for the type described by the candidate metadata record. If the cache has already been populated, its content will be returned.

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