-
Notifications
You must be signed in to change notification settings - Fork 26
ClassMetadata
The metadata structure that represents a class
type in Swift.
public struct ClassMetadata: TypeMetadata, LayoutWrapper
ABI Stability: Stable since the following
| macOS | iOS/tvOS | watchOS | Linux | Windows |
|-------|----------|---------|-------|---------|
| 10.14 | 12.2 | 5.2 | NA | NA |
Backing class metadata pointer.
public let ptr: UnsafeRawPointer
The class context descriptor that describes this class.
public var descriptor: ClassDescriptor
The Objective-C ISA pointer, if it has one.
public var isaPointer: UnsafeRawPointer?
The superclass type that this class inherits from, if it inherits one at all.
public var superclassType: Any.Type?
The superclass type metadata that this class inherits from, it it inherits one at all.
public var superclassMetadata: ClassMetadata?
The offset of the address point within the class.
public var classAddressPoint: Int
The specific flags that describe this class metadata.
public var flags: Flags
The size of the class including headers and suffixes.
public var classSize: Int
Whether or not this class was defined in Swift.
public var isSwiftClass: Bool
The address point for instances of this type.
public var instanceAddressPoint: Int
The required size of instances of this type.
public var instanceSize: Int
The alignment mask of the address point for instances of this type.
public var instanceAlignmentMask: Int
An array of field offsets for this class's stored representation.
public var fieldOffsets: [Int]
Generated at 2021-05-06T17:56:33+0000 using swift-doc 1.0.0-beta.6.
Types
- AnonymousDescriptor
- AnonymousDescriptor.Flags
- AnyExistentialContainer
- BoxPair
- ClassDescriptor
- ClassMetadata
- ClassMetadata.Flags
- ConformanceDescriptor
- ConformanceDescriptor.Flags
- ContextDescriptorFlags
- ContextDescriptorKind
- DualExistentialContainer
- EnumDescriptor
- EnumMetadata
- EnumValueWitnessTable
- ExistentialContainer
- ExistentialMetadata
- ExistentialMetadata.Flags
- ExistentialMetatypeMetadata
- ExtensionDescriptor
- FieldDescriptor
- FieldDescriptor.Kind
- FieldRecord
- FieldRecord.Flags
- ForeignClassMetadata
- ForeignMetadataInitialization
- FunctionConvention
- FunctionMetadata
- FunctionMetadata.Flags
- FunctionMetadata.ParamFlags
- GenericContext
- GenericMetadataPattern
- GenericMetadataPattern.Flags
- GenericParameterDescriptor
- GenericParameterKind
- GenericRequirementDescriptor
- GenericRequirementDescriptor.Flags
- GenericRequirementKind
- GenericRequirementLayoutKind
- HeapGenericLocalVariableMetadata
- HeapLocalVariableMetadata
- HeapObject
- KnownMetadata
- KnownMetadata.Builtin
- MetadataAccessFunction
- MetadataBounds
- MetadataInitializationKind
- MetadataKind
- MetadataRequest
- MetadataResponse
- MetadataState
- MetatypeMetadata
- MethodDescriptor
- MethodDescriptor.Flags
- MethodDescriptor.Kind
- MethodOverrideDescriptor
- ModuleDescriptor
- ObjCClassWrapperMetadata
- OpaqueDescriptor
- OpaqueMetadata
- OverrideTableHeader
- ProtocolDescriptor
- ProtocolDescriptor.Flags
- ProtocolRequirement
- ProtocolRequirement.Flags
- ProtocolRequirement.Kind
- ReferenceStorageKind
- SingletonMetadataInitialization
- SpecialProtocol
- StructDescriptor
- StructMetadata
- TupleMetadata
- TupleMetadata.Element
- TypeContextDescriptorFlags
- TypeGenericContext
- TypeReferenceKind
- VTableDescriptorHeader
- ValueOwnership
- ValueWitnessTable
- ValueWitnessTable.Flags
- WitnessTable