Skip to main content
Log in

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.