Marmot-TS
    Preparing search index...

    Function decodeVarint

    • Decodes a QUIC variable-length integer at offset.

      Rejects non-minimal encodings: a value MUST use the shortest prefix size that can hold it, so a longer prefix for the same value is invalid.

      Parameters

      • data: Uint8Array
      • offset: number = 0

      Returns { length: number; value: bigint }

      The decoded value and the number of bytes consumed.