cbor2
    Preparing search index...

    Function writeLength

    • Writes the length of the given object. If we are using the original encoding, use its length.

      Parameters

      • obj: object

        Object whose length to write.

      • len: number

        Preferred size.

      • mt: number

        Major type.

      • w: Writer

        Writer.

      • opts: RequiredEncodeOptions

        Options.

      Returns void