Skip to content

Data

zarrista.Data

A decoded chunk of array data.

Implements the Python buffer protocol (PEP 3118), so dtypes with a native buffer representation can be read zero-copy via memoryview(data) or np.asarray(data). Dtypes without one raise BufferError.

to_numpy

to_numpy() -> NDArray[Any]

Convert the chunk into a NumPy array.

Zero-copy when the dtype supports the buffer protocol; otherwise the data is copied and converted.