Skip to content

StructureRepresentation

0x41c edited this page Jun 15, 2022 · 5 revisions

StructureRepresentation

public protocol StructureRepresentation: CustomStringConvertible 

Inheritance

CustomStringConvertible

Default Implementations

init(withPointer:)

Initializes this representation with a raw pointer. This will be casted to the representation type.

init(withPointer pointer: UnsafeRawPointer) 

Parameters

  • pointer: The pointer to the metadata to represent.

init(withStructure:)

Initializes this representation with a pointer to the already casted metadata representation.

init(withStructure structure: UnsafeMutablePointer<InternalRepresentation>) 

Parameters

  • structure: The structure to initialize this metadata wrapper with.

structureSize

Represents the size of the internal representation.

static var structureSize: Int 

description

var description: String 

Requirements

InternalRepresentation

associatedtype InternalRepresentation

`_`

A pointer the the types underlying representation. This pointer is resilient.

var `_`: UnsafeMutablePointer<InternalRepresentation> 
Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally