DASL.CAR.Decoder (dasl v0.1.0)

View Source

Decoder for DASL CAR binary streams. Spec: https://dasl.ing/car.html

Summary

Functions

Decodes a CAR binary stream into a DASL.CAR struct.

Types

block_error()

@type block_error() :: {:error, :block, atom()}

header_error()

@type header_error() :: {:error, :header, atom()}

Functions

decode(binary, opts \\ [])

@spec decode(
  binary(),
  keyword()
) :: {:ok, DASL.CAR.t()} | header_error() | block_error()

Decodes a CAR binary stream into a DASL.CAR struct.

Accepts the same options as DASL.CAR.decode/2.