Skip to content

FieldDescriptor

Azoy edited this page Mar 17, 2021 · 2 revisions

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.

var hasMangledTypeName: Bool

mangledTypeName

The mangled name for this field descriptor.

var mangledTypeName: UnsafeRawPointer

superclass

The superclass mangled name for a class.

var superclass: UnsafeRawPointer

kind

The kind of field descriptor this is.

var kind: Kind

recordSize

The size in bytes of each field record.

var recordSize: Int

numFields

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

var numFields: Int

records

An array of this type's field records.

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

Clone this wiki locally