Skip to main content

Mojo module

stack_allocation

Defines the stack_allocation function for stack-based memory allocation.

You can import these APIs from the memory package. For example:

from std.memory import stack_allocation

Functions

  • stack_allocation: Allocates data buffer space on the stack given a data type and number of elements.

Was this page helpful?