For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
stack_allocation
Defines the unsafe_stack_allocation function for stack-based memory allocation.
You can import these APIs from the memory package. For example:
from std.memory import unsafe_stack_allocation
Functions
-
stack_allocation: Allocates data buffer space on the stack given a data type and number of elements. -
unsafe_stack_allocation: Allocates data buffer space on the stack given a data type and number of elements.