Files
skills/docs/foundation/bitpacker/bitpacker-strategies/src/strategies/array-schema/array-schema.md
2026-05-29 08:20:56 +01:00

570 B

ArraySchemaPackingStrategy

Packs/unpacks fixed-length tuple schemas.

(no submodules)

Schema shape

An array where each element is a distinct schema:

[255, "-16", true] // tuple of [uint8, variable-string, boolean]

Behaviour

  • No length prefix is written (the schema itself defines the arity).
  • Each data element is packed/unpacked against the schema at the same index.
  • Arrays matching suaveplan homogeneous formats ([schema] or [number, schema]) are delegated to ArrayPackingStrategy.