A data format designed to represent complex OCaml values. The format is designed for 0-copy parsing (or, not much copy anyway) and reasonable compactness.
The encoding relies on a first byte to disambiguate between values. The first byte is a bitfield [kind:4 low:4] where:
- [kind] is the kind of value (int, float, etc.)
- [low] is a small integer value whose meaning depends on the kind.