1- .. _ endian -codec-v1 :
1+ .. _ bytes -codec-v1 :
22
33============================
4- Endian codec (version 1.0)
4+ Bytes codec (version 1.0)
55============================
66
77 **Editor's draft 26 July 2019 **
88
99Specification URI:
10- https://zarr-specs.readthedocs.io/en/latest/v3/codecs/endian /v1.0.html
10+ https://zarr-specs.readthedocs.io/en/latest/v3/codecs/bytes /v1.0.html
1111Corresponding ZEP:
1212 `ZEP0001 — Zarr specification version 3 <https://zarr.dev/zeps/accepted/ZEP0001.html >`_
1313Issue tracking:
1414 `GitHub issues <https://github.com/zarr-developers/zarr-specs/labels/codec >`_
1515Suggest an edit for this spec:
16- `GitHub editor <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/codecs/endian /v1.0.rst >`_
16+ `GitHub editor <https://github.com/zarr-developers/zarr-specs/blob/main/docs/v3/codecs/bytes /v1.0.rst >`_
1717
1818Copyright 2020-Present Zarr core development team. This work
1919is licensed under a `Creative Commons Attribution 3.0 Unported License
@@ -26,7 +26,8 @@ Abstract
2626========
2727
2828Defines an ``array -> bytes `` codec that encodes arrays of fixed-size numeric
29- data types as little endian or big endian in lexicographical order.
29+ data types as a sequence of bytes in lexicographical order. For multi-byte data
30+ types, it encodes the array either in little endian or big endian.
3031
3132
3233Status of this document
@@ -54,14 +55,18 @@ this specification are introduced with the words "for example".
5455Codec name
5556==========
5657
57- The value of the ``name `` member in the codec object MUST be ``endian ``.
58+ The value of the ``name `` member in the codec object MUST be ``bytes ``.
5859
5960
6061Configuration parameters
6162========================
6263
6364endian:
64- Required. A string equal to either ``"big" `` or ``"little" ``.
65+ Required for data types for which endianness is applicable. For example,
66+ this includes multi-byte data types, such as ``uint16 `` and ``int32 ``,
67+ but not single-byte data types, such as ``uint8 `` or ``bool ``.
68+ If present, the value MUST be a string equal to either ``"big" `` or
69+ ``"little" ``.
6570
6671
6772Format and algorithm
@@ -130,4 +135,5 @@ References
130135 Change log
131136==========
132137
133- No changes yet.
138+ - ``endian `` codec was renamed to ``bytes `` codec. `PR #263
139+ <https://github.com/zarr-developers/zarr-specs/pull/263/> `_
0 commit comments