Wolfgang Jeltsch pushed to branch wip/jeltsch/portable-bco-byte-array-serialization at Glasgow Haskell Compiler / GHC
Commits:
-
1df4cc3e
by Wolfgang Jeltsch at 2026-11-25T16:51:45+02:00
1 changed file:
Changes:
| ... | ... | @@ -234,10 +234,9 @@ instance Binary (BCOByteArray Word) where |
| 234 | 234 | -- Note [BCOByteArray serialization]
|
| 235 | 235 | -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 236 | 236 | --
|
| 237 | --- The serialization of a 'BCOByteArray' value consists of the serialization of
|
|
| 238 | --- the number of elements followed by the serializations of the individual
|
|
| 239 | --- elements. The serialization format is platform-independent, thanks to the
|
|
| 240 | --- following specifics:
|
|
| 237 | +-- In its serialized form, a 'BCOByteArray' value is represented by the number
|
|
| 238 | +-- of its elements followed by the individual elements. The serialization format
|
|
| 239 | +-- is platform-independent, thanks to the following specifics:
|
|
| 241 | 240 | --
|
| 242 | 241 | -- * All natural numbers are encoded using little endian, independently of the
|
| 243 | 242 | -- host’s endianness.
|