Versions in this module Expand all Collapse all v0 v0.1.0 Oct 23, 2026 Changes in this version + var ErrCodecRequiresCGO = codec.ErrRequiresCGO + var ErrCorruptMetadata = errors.New("corrupt metadata") + var ErrReadOnly = store.ErrReadOnly + var ErrShapeMismatch = errors.New("shape mismatch") + var ErrUnknownCodec = codec.ErrUnknownCodec + var ErrUnsupportedDtype = errors.New("unsupported dtype") + func ChunksIntersecting(arrayShape, chunkShape []int64, sel Selection) iter.Seq[ChunkCoord] + func Float16ToFloat32(h Float16) float32 + func MaxDecodedBytes() int64 + func SetMaxDecodedBytes(n int64) + type Array struct + func CreateArray[T Numeric](ctx context.Context, s store.Store, path string, shape, chunks []int64, ...) (*Array[T], error) + func OpenArray[T Numeric](ctx context.Context, s store.Store, path string, opts ...OpenOption) (*Array[T], error) + func (a *Array[T]) Attrs() map[string]any + func (a *Array[T]) Chunks() []int64 + func (a *Array[T]) DimensionNames() []string + func (a *Array[T]) Dtype() Dtype + func (a *Array[T]) FillValue() T + func (a *Array[T]) Path() string + func (a *Array[T]) Read(ctx context.Context, sel Selection, dst []T) error + func (a *Array[T]) Shape() []int64 + func (a *Array[T]) Stream(ctx context.Context, sel Selection) iter.Seq2[Chunk[T], error] + func (a *Array[T]) Write(ctx context.Context, sel Selection, src []T) error + type Chunk struct + Coord []int64 + Data []T + Shape []int64 + type ChunkCoord []int64 + func (c ChunkCoord) Clone() ChunkCoord + type CreateOption interface + func WithAttributes(attrs map[string]any) CreateOption + func WithChunkKeySeparator(sep string) CreateOption + func WithCodecs(specs ...codec.Spec) CreateOption + func WithDimensionNames(names []string) CreateOption + func WithFillValue(v any) CreateOption + func WithOverwrite() CreateOption + func WithV2ChunkKeys() CreateOption + type DecodeError struct + Coord []int64 + Err error + func (e *DecodeError) Error() string + func (e *DecodeError) Unwrap() error + type DimRange = codec.DimRange + type Dtype uint8 + const DtypeBool + const DtypeComplex128 + const DtypeComplex64 + const DtypeFloat16 + const DtypeFloat32 + const DtypeFloat64 + const DtypeInt16 + const DtypeInt32 + const DtypeInt64 + const DtypeInt8 + const DtypeInvalid + const DtypeUint16 + const DtypeUint32 + const DtypeUint64 + const DtypeUint8 + func DtypeOf[T Numeric]() Dtype + func ParseDtype(name string) (Dtype, error) + func (d Dtype) Size() int + func (d Dtype) String() string + type Float16 uint16 + type Group struct + func CreateGroup(ctx context.Context, s store.Store, path string, opts ...CreateOption) (*Group, error) + func (g *Group) Attrs() map[string]any + func (g *Group) CreateGroup(ctx context.Context, name string, opts ...CreateOption) (*Group, error) + func (g *Group) Path() string + type Node interface + func Open(ctx context.Context, s store.Store, path string, opts ...OpenOption) (Node, error) + type Numeric interface + type OpenOption func(*arrayOptions) + func WithConcurrency(n int) OpenOption + func WithIOConcurrency(n int) OpenOption + func WithRangeGap(b int64) OpenOption + type Selection []DimRange + func All(shape []int64) Selection + func (s Selection) NumElements() int64 + func (s Selection) Validate(shape []int64) error