𝓔_l : Fixed-width LE encoding. GP eq (C.12). Encodes natural x into exactly l bytes, little-endian.
16.1. Primitive Encoders
Jar.Codec.encodeFixedNat : Nat → Nat → ByteArrayJar.Codec.encodeFixedNat : Nat → Nat → ByteArray
Jar.Codec.decodeFixedNat (bs : ByteArray) : NatJar.Codec.decodeFixedNat (bs : ByteArray) : Nat
Decode fixed-width LE bytes back to a natural number.
Jar.Codec.encodeNat (x : Nat) : ByteArrayJar.Codec.encodeNat (x : Nat) : ByteArray
𝓔 : Variable-length natural encoding. GP eq (C.1). Encodes naturals up to 2^64 into 1–9 bytes.
Jar.Codec.encodeOption.{u_1} {α : Type u_1} (f : α → ByteArray) : Option α → ByteArrayJar.Codec.encodeOption.{u_1} {α : Type u_1} (f : α → ByteArray) : Option α → ByteArray
¿x : Optional discriminator encoding. GP eq (C.6). None → [0], Some x → [1] ++ 𝓔(x).
Jar.Codec.encodeLengthPrefixed (data : ByteArray) : ByteArrayJar.Codec.encodeLengthPrefixed (data : ByteArray) : ByteArray
↕x : Length-prefixed encoding. GP eq (C.4). Prepends the byte-length of the encoded data as a variable-length natural.
Jar.Codec.encodeBits (bs : Array Bool) : ByteArrayJar.Codec.encodeBits (bs : Array Bool) : ByteArray
Pack a boolean array into bytes, LSB-first within each byte. GP eq (C.9).
Jar.Codec.concatBytes (parts : Array ByteArray) : ByteArrayJar.Codec.concatBytes (parts : Array ByteArray) : ByteArray
Concatenate an array of ByteArrays.
Jar.Codec.encodeArray.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArrayJar.Codec.encodeArray.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArray
Encode an array of items and concatenate (for fixed-size element encoding).
Jar.Codec.encodeLengthPrefixedArray.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArrayJar.Codec.encodeLengthPrefixedArray.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArray
Encode an array with byte-length prefix (for backward compat).
Jar.Codec.encodeCountPrefixedArray.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArrayJar.Codec.encodeCountPrefixedArray.{u_1} {α : Type u_1} (f : α → ByteArray) (xs : Array α) : ByteArray
Encode a sequence with count prefix. GP eq (C.4): 𝓔([x₁, ..., xₙ]) ≡ 𝓔(n) ⌢ 𝓔(x₁) ⌢ ... ⌢ 𝓔(xₙ).