Pointee
typealias Pointee = UInt8typealias Pointee = UInt8import Swift@frozen struct UnsafeMutableRawPointerA raw pointer for accessing and manipulating untyped data.
@frozen struct UInt8An 8-bit unsigned integer value type.
init?<T>(_ other: UnsafeMutablePointer<T>?) where T : ~Copyable Creates a new raw pointer from the given typed pointer.
init<T>(_ other: UnsafeMutablePointer<T>) where T : ~Copyable Creates a new raw pointer from the given typed pointer.
init(mutating other: UnsafeRawPointer) Creates a new mutable raw pointer from the given immutable raw pointer.
init?(mutating other: UnsafeRawPointer?) Creates a new mutable raw pointer from the given immutable raw pointer.
static func allocate(byteCount: Int, alignment: Int) -> UnsafeMutableRawPointer Allocates uninitialized memory with the specified size and alignment.
func advanced(by n: Int) -> UnsafeMutableRawPointer func alignedDown<T>(for type: T.Type) -> UnsafeMutableRawPointer where T : ~Copyable Obtain the preceding pointer properly aligned to store a value of type T.
func alignedDown(toMultipleOf alignment: Int) -> UnsafeMutableRawPointer Obtain the preceding pointer whose bit pattern is a multiple of alignment.
func alignedUp<T>(for type: T.Type) -> UnsafeMutableRawPointer where T : ~Copyable Obtain the next pointer properly aligned to store a value of type T.
func alignedUp(toMultipleOf alignment: Int) -> UnsafeMutableRawPointer Obtain the next pointer whose bit pattern is a multiple of alignment.
func assumingMemoryBound<T>(to: T.Type) -> UnsafeMutablePointer<T> where T : ~Copyable Returns a typed pointer to the memory referenced by this pointer, assuming that the memory is already bound to the specified type.
@discardableResult func bindMemory<T>(to type: T.Type, capacity count: Int) -> UnsafeMutablePointer<T> where T : ~Copyable Binds the memory to the specified type and returns a typed pointer to the bound memory.
func copyMemory(from source: UnsafeRawPointer, byteCount: Int) Copies the specified number of bytes from the given raw pointer’s memory into this pointer’s memory.
func deallocate() Deallocates the previously allocated memory block referenced by this pointer.
@discardableResult func initializeMemory<T>(as type: T.Type, from source: UnsafePointer<T>, count: Int) -> UnsafeMutablePointer<T> Initializes the memory referenced by this pointer with the values starting at the given pointer, binds the memory to the values’ type, and returns a typed pointer to the initialized memory.
@discardableResult func initializeMemory<T>(as type: T.Type, repeating repeatedValue: T, count: Int) -> UnsafeMutablePointer<T> Initializes the memory referenced by this pointer with the given value, binds the memory to the value’s type, and returns a typed pointer to the initialized memory.
@discardableResult func initializeMemory<T>(as type: T.Type, to value: consuming T) -> UnsafeMutablePointer<T> where T : ~Copyable Initializes the memory referenced by this pointer with the given value, binds the memory to the value’s type, and returns a typed pointer to the initialized memory.
func load<T>(fromByteOffset offset: Int = 0, as type: T.Type) -> T Returns a new instance of the given type, constructed from the raw memory at the specified offset.
func loadUnaligned<T>(fromByteOffset offset: Int = 0, as type: T.Type) -> T Returns a new instance of the given type, constructed from the raw memory at the specified offset.
func loadUnaligned<T>(fromByteOffset offset: Int = 0, as type: T.Type) -> T where T : BitwiseCopyable Returns a new instance of the given type, constructed from the raw memory at the specified offset.
@discardableResult func moveInitializeMemory<T>(as type: T.Type, from source: UnsafeMutablePointer<T>, count: Int) -> UnsafeMutablePointer<T> where T : ~Copyable Initializes the memory referenced by this pointer with the values starting at the given pointer, binds the memory to the values’ type, deinitializes the source memory, and returns a typed pointer to the newly initialized memory.
func storeBytes<T>(of value: T, toByteOffset offset: Int = 0, as type: T.Type) Stores the given value’s bytes into raw memory at the specified offset.
func storeBytes<T>(of value: T, toByteOffset offset: Int = 0, as type: T.Type) where T : BitwiseCopyable Stores the given value’s bytes into raw memory at the specified offset.
func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable Executes the given closure while temporarily binding memory to the specified number of instances of type T.
static func allocate(bytes size: Int, alignedTo alignment: Int) -> UnsafeMutableRawPointer var customPlaygroundQuickLook: _PlaygroundQuickLook { get }func copyBytes(from source: UnsafeRawPointer, count: Int) func deallocate(bytes _: Int, alignedTo _: Int) @discardableResult func initializeMemory<T>(as type: T.Type, at offset: Int = 0, count: Int = 1, to repeatedValue: T) -> UnsafeMutablePointer<T> @discardableResult func initializeMemory<C>(as type: C.Element.Type, from source: C) -> UnsafeMutablePointer<C.Element> where C : Collection