@blockchaincommons/dcbor-pattern - v1.0.0-beta.2
    Preparing search index...

    Function spanToByteOffsets

    • Converts a span's UTF-16 offsets to UTF-8 byte offsets, as other implementations count them.

      Parameters

      • source: string
      • range: Span

      Returns Span