Interface ToCBOR

interface ToCBOR {
    toCBOR(w: Writer, opts: Required): undefined | TaggedValue;
}

Implemented by

Methods

Methods

  • If an object implements this interface, this method will be used to serialize the object when encoding. Return undefined if you don't want any further serialization to take place. Return an array of [tag, value] if you would like default serialization, where if tag is not NaN, a CBOR tag will be written before the value.

    Parameters

    • w: Writer

      Writer.

    • opts: Required

      Options.

    Returns undefined | TaggedValue

MMNEPVFCICPMFPCPTTAAATR