MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / decodeUnsignedLong

Method decodeUnsignedLong

vm/JavaAPI/src/java/lang/Character.java:1653–1664  ·  view source on GitHub ↗
(CharFlow seq)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

decodeDigitMethod · 0.95

Tested by

no test coverage detected