Skip to main content

Module buffer

Module buffer 

Source
Expand description

The Universal Memory Box.

The Buffer enum wraps physical hardware memory allocations. It strictly acts as a flat, contiguous data container. All spatial geometry (dimensions and strides) is explicitly managed by the Shape struct in src/shape.rs.

Enumsยง

Buffer
The hardware-agnostic physical data container.
CpuBuffer
Contiguous CPU memory blocks wrapped in an Atomic Reference Counter (Arc) to ensure zero-copy graph sharing and thread-safe execution.