Product Type
PointerToMutable
A typed memory address whose contents can be read and written.
type PointerToMutable<Pointee>: Regular
Members
Bindings
var base: ???
Functions
fun advance(by n: Int) -> PointerToMutable<Pointee>
Returns self offset forward by n array elements of Pointee type.
static fun null() -> PointerToMutable<Pointee>
Creates an instance that does not address any usable storage.
fun unsafe_initialize_pointee<E, R>(_ initialize: inout [E] (Pointee) let -> R) -> R
Returns the result of applying initialize to the uninitialized Pointee storage.
fun unsafe_initialize(copying_bytes_from source: Pointer<Pointee>, count: Int)
Initializes the memory referenced by count consecutive bytewise copies of value.
Subscripts
subscript unsafe(): Pointee { let, inout }
The value at the address represented by self.
Initializers
init()
init(adding_mutation_to p: Pointer<Pointee>)
Creates an instance with mutable access to the memory pointed to by p.
init<Other>(type_punning p: PointerToMutable<Other>)
Creates an instance referring to the same address as p.