Skip to content

FieldDescriptor

tevelee edited this page Jul 21, 2026 · 1 revision

FieldDescriptor

A special descriptor that describes a type's fields.

public struct FieldDescriptor: LayoutWrapper 

ABI Stability: Stable since the following

| macOS | iOS/tvOS | watchOS | Linux | Windows |
|-------|----------|---------|-------|---------|
| 10.14 | 12.2     | 5.2     | NA    | NA      |

Inheritance

LayoutWrapper

Properties

hasMangledTypeName

Whether or not this field descriptor has a mangled name.

public var hasMangledTypeName: Bool 

mangledTypeName

The mangled name for this field descriptor.

public var mangledTypeName: UnsafeRawPointer 

superclass

The superclass mangled name for a class.

public var superclass: UnsafeRawPointer 

kind

The kind of field descriptor this is.

public var kind: Kind 

recordSize

The size in bytes of each field record.

public var recordSize: Int 

numFields

The number of fields (properties) that this type declares.

public var numFields: Int 

records

An array of this type's field records.

public var records: [FieldRecord] 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally