Product Type

Pointer

A typed memory address whose contents can be read.

Members

Bindings

var base: ???

Functions

fun advance(by n: Int) -> Pointer<Pointee>

Returns self offset forward by n array elements of Pointee type.

static fun null() -> Pointer<Pointee>

Creates an instance that does not address any usable storage.

Subscripts

subscript unsafe(): Pointee { let }

The value at the given address.

property raw: MemoryAddress { let }

Projects a copy of self as a raw memory address.

Initializers

init()
init(bit_pattern address: UInt)

Creates an instance with the same memory representation as address.

init(_ p: PointerToMutable<Pointee>)

Creates an instance representing the same address as p.

init<Other>(type_punning p: Pointer<Other>)

Creates an instance referring to the same address as p.

init<Other>(type_punning p: PointerToMutable<Other>)

Creates an instance referring to the same address as p.