Skip to content

Index

Zarr provides buffer classes for both the cpu and gpu. Generic buffer functionality is also detailed below.

zarr.buffer

Implementations of the Zarr Buffer interface.

See Also

zarr.abc.buffer: Abstract base class for the Zarr Buffer interface.

__all__ module-attribute

__all__ = ['cpu', 'default_buffer_prototype', 'gpu']

default_buffer_prototype

default_buffer_prototype() -> BufferPrototype
Source code in zarr/core/buffer/core.py
def default_buffer_prototype() -> BufferPrototype:
    from zarr.registry import (
        get_buffer_class,
        get_ndbuffer_class,
    )

    return BufferPrototype(buffer=get_buffer_class(), nd_buffer=get_ndbuffer_class())