ipldm
Safe HaskellSafe-Inferred
LanguageGHC2021

IPLD.DagCBOR.Encoder.Arguments

Description

 
Synopsis

Encodes CBOR type argument configuration into a byte.

type MajorArg = Word8 Source #

3-bit identifier for idenitifying the major data types of CBOR.

type ParamArg = Word8 Source #

5-bit identifier that configures the data-type parameters for CBOR objects.

encodeArgument :: MajorArg -> ParamArg -> Builder Source #

Encodes and validates the major type id and the parameter data.