c0data
    Preparing search index...

    Function scanUnit

    • From pos (just after a US, RS or a key's US), find the end of one unit's value: the next control code at this depth other than the ones that belong to the value (STX…ETX, DLE…CAN, ENQ, BEL note). Layout at the edges is included in the returned range.

      Parameters

      • buf: Uint8Array
      • pos: number
      • stop: number = buf.length

      Returns number