DXN bits (DXN.md §1.4): a run of bits that is not whole bytes --
@bits {"oA==" 3} in text, T_BITS around [bytes, count] in
.dxnb. JavaScript has no bitstring, so this holds the bytes, the
unused low bits of the last one zero, and how many bits are the value.
Bits and bytes are one value space: a run of whole bytes is bytes,
so DXNBits.from answers a DXNBytes for one, and the constructor
refuses it. Mirrors the Elixir reference's bitstring in a
Dextrin.Bytes.
The value data and bitLength write: bits, or bytes when the
count is a whole number of them. Throws a TypeError when they write
none (a count the data does not match).
DXN
bits(DXN.md §1.4): a run of bits that is not whole bytes --@bits {"oA==" 3}in text,T_BITSaround[bytes, count]in.dxnb. JavaScript has no bitstring, so this holds the bytes, the unused low bits of the last one zero, and how many bits are the value.Bits and bytes are one value space: a run of whole bytes is bytes, so
DXNBits.fromanswers aDXNBytesfor one, and the constructor refuses it. Mirrors the Elixir reference's bitstring in aDextrin.Bytes.