Dextrin.Binary.Decoder (Dextrin v0.1.0)

Copy Markdown View Source

.dxnb decoder โ€” the mirror image of Dextrin.Binary.Encoder. Envelope (magic version cbor_item) checked once at the top; everything below that is a single recursive decode_item/2, keyed on CBOR major type first, then on tag โ€” matching DXN.md ยง2.2's table row order the same way the encoder does.

Summary

Functions

decode(bin, opts \\ [])

@spec decode(
  binary(),
  keyword()
) :: {:ok, term()} | {:error, Dextrin.Error.t()}