cbor2
    Preparing search index...

    Function encode

    • Convert the given input to a CBOR byte string.

      Parameters

      • val: unknown

        Any JS value that is CBOR-convertible.

      • options: EncodeOptions = {}

        Tweak the conversion process.

      Returns Uint8Array

      Bytes in a Uint8Array buffer.