Eyeon.BinaryDecoder.V10 (eyeon v0.3.2)

Copy Markdown View Source

Decodes Ion 1.0 binary format to Elixir values.

This module expects data WITHOUT the Ion Version Marker (BVM) prefix. The BVM is stripped by Eyeon.BinaryDecoder (the router) before dispatching here.

Summary

Functions

decode(data, catalog \\ Catalog.new([]), options \\ %{})

@spec decode(binary(), Eyeon.Catalog.t(), map()) :: {:ok, any()} | {:error, any()}

decode_all(data, catalog \\ Catalog.new([]), options \\ %{})

@spec decode_all(binary(), Eyeon.Catalog.t(), map()) ::
  {:ok, [any()]} | {:error, any()}