cbor2
    Preparing search index...

    Class Simple

    A CBOR "Simple" value that is not one of the pre-standardized set.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    KnownSimple: Map<number, SimpleValue> = ...
    value: number

    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

    • Returns a string representation of an object.

      Returns string