Encodes and decodes type references in Kiwi's compact binary schema format.
Binary schemas encode primitive types as bitwise-negated primitive indexes and user-defined schema types as non-negative indexes into the definition list.
Summary
Functions
@spec decode(integer(), [KiwiCodec.Schema.definition()]) :: String.t()
@spec encode(KiwiCodec.Schema.Field.t(), %{required(String.t()) => non_neg_integer()}) :: integer()