Skip to main content

Mojo module

buffer

Implements the Buffer class.

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

from buffer import Buffer
from buffer import Buffer

Structs

  • Buffer: Defines a Buffer which can be parametrized on a static size and Dtype.
  • DynamicRankBuffer: DynamicRankBuffer represents a buffer with unknown rank, shapes and dtype.
  • NDBuffer: An N-dimensional Buffer.

Functions