Mojo module
unsafe_pointer
Implement a generic unsafe pointer type.
You can import these APIs from the memory
package. For example:
from memory import UnsafePointer
from memory import UnsafePointer
Structs
-
UnsafePointer
: UnsafePointer[T] represents an indirect reference to one or more values of type T consecutively in memory, and can refer to uninitialized memory.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!