Skip to content

Commit b9ae65b

Browse files
authored
Merge pull request #263 from scalableminds/endian-to-bytes
Rename endian codec to bytes
2 parents 8eee540 + 0794d91 commit b9ae65b

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

docs/v3/codecs/endian/v1.0.rst renamed to docs/v3/codecs/bytes/v1.0.rst

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
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

99
Specification 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
1111
Corresponding ZEP:
1212
`ZEP0001 — Zarr specification version 3 <https://zarr.dev/zeps/accepted/ZEP0001.html>`_
1313
Issue tracking:
1414
`GitHub issues <https://github.com/zarr-developers/zarr-specs/labels/codec>`_
1515
Suggest 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

1818
Copyright 2020-Present Zarr core development team. This work
1919
is licensed under a `Creative Commons Attribution 3.0 Unported License
@@ -26,7 +26,8 @@ Abstract
2626
========
2727

2828
Defines 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

3233
Status of this document
@@ -54,14 +55,18 @@ this specification are introduced with the words "for example".
5455
Codec 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

6061
Configuration parameters
6162
========================
6263

6364
endian:
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

6772
Format 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/>`_

docs/v3/codecs/sharding-indexed/v1.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Sharding can be configured per array in the :ref:`array-metadata` as follows::
9797
"chunk_shape": [32, 32],
9898
"codecs": [
9999
{
100-
"name": "endian",
100+
"name": "bytes",
101101
"configuration": {
102102
"endian": "little",
103103
}
@@ -111,7 +111,7 @@ Sharding can be configured per array in the :ref:`array-metadata` as follows::
111111
],
112112
"index_codecs": [
113113
{
114-
"name": "endian",
114+
"name": "bytes",
115115
"configuration": {
116116
"endian": "little",
117117
}

docs/v3/core/v3.0.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,6 +1734,8 @@ by time.
17341734
Changes after Provisional Acceptance
17351735
------------------------------------
17361736

1737+
- ``endian`` codec was renamed to ``bytes`` codec. `PR #263
1738+
<https://github.com/zarr-developers/zarr-specs/pull/263/>`_
17371739
- Fallback data type support was removed. `PR #248
17381740
<https://github.com/zarr-developers/zarr-specs/pull/248/>`_
17391741
- It is now required to specify an ``array -> bytes`` codec in the ``codecs``

0 commit comments

Comments
 (0)