Skip to main content
Log in

Mojo function

external_memory

external_memory[type: AnyTrivialRegType, *, address_space: AddressSpace, alignment: Int, name: StringLiteral = "extern_ptr_syml"]() -> UnsafePointer[type, address_space=address_space, alignment=alignment]

Gets a pointer to dynamic shared memory.

Parameters:

  • type (AnyTrivialRegType): The pointer's type.
  • address_space (AddressSpace): The address space used.
  • alignment (Int): The pointer's address alignment.
  • name (StringLiteral): The name of the external memory.

Returns:

A pointer to dynamic shared memory.