Figma fig-kiwi container helpers.
Summary
Functions
Parses a fig-kiwi container and inflates only its data chunk.
Parses a fig-kiwi container and inflates its schema and data chunks.
Replaces the encoded message in a fig-kiwi container.
Functions
Parses a fig-kiwi container and inflates only its data chunk.
@spec decode(binary()) :: %{ version: non_neg_integer(), schema: KiwiCodec.Schema.t(), data: binary() }
Parses a fig-kiwi container and inflates its schema and data chunks.
@spec parse(binary()) :: %{ magic: binary(), version: non_neg_integer(), chunks: [binary()] }
Replaces the encoded message in a fig-kiwi container.
The original schema chunk, container version, and any trailing chunks are preserved. The new data uses the same compression family as the original data chunk.