Skip to content

swift_getEnumCaseMultiPayload(____)

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

swift_getEnumCaseMultiPayload(_:_:)

Returns an integer value representing which case of a multi-payload enum is inhabited.

@_silgen_name("swift_getEnumCaseMultiPayload")
public func swift_getEnumCaseMultiPayload(
    _ value: UnsafeRawPointer,
    _ enumType: Any.Type
) -> UInt

Parameters

  • value: A pointer to the enum value.
  • enumType: Type metadata for the enum.

Returns

The index of the enum case.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally