(CharFlow seq)
| 1651 | } |
| 1652 | |
| 1653 | public static long decodeUnsignedLong(CharFlow seq) { |
| 1654 | long number = 0; |
| 1655 | long pos = 1; |
| 1656 | boolean hasMore; |
| 1657 | do { |
| 1658 | int digit = decodeDigit(seq.characters[seq.pointer++]); |
| 1659 | hasMore = digit % 2 == 1; |
| 1660 | number += pos * (digit / 2); |
| 1661 | pos *= 46; |
| 1662 | } while (hasMore); |
| 1663 | return number; |
| 1664 | } |
| 1665 | |
| 1666 | public static long decodeLong(CharFlow seq) { |
| 1667 | long number = decodeUnsigned(seq); |
nothing calls this directly
no test coverage detected