@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function divergenceOffset

    • Find the first byte offset where observed and expected diverge under the hex-case policy, or -1 if they match. Offsets are in characters of the encoded string (not decoded bytes), suitable for error reports that need to point at the offending percent-triplet.

      Parameters

      • observed: string
      • expected: string

      Returns number