@gmb/bitmark-parser - v7.21.2
    Preparing search index...

    Function splitBits

    • Split a bitmark document into per-bit source slices.

      start / end locate each slice's source in input, counted in positionEncoding units — with the default "utf-16", input.slice(start, end) === source. byteStart / byteEnd are UTF-8 byte offsets that tile the document, for chunking.

      Parameters

      Returns BitSlice[]

      Array of { index, start, end, byteStart, byteEnd, source }.