Function saveEncodedLength

  • Save the original encoding for the length of an object or array, so that it can be later extracted. Include the major type in the original bytes.

    Parameters

    • obj: OriginalEncoding

      Object to store a length on.

    • orig: Uint8Array

      Originally-encoded version of the length, including major type.

    Returns void