Convert an ordered sequence of 64 characters into a base 64 alphabet.
Decode a full CharSequence as a base-64-encoded Long, using the standard base-64 alphabet.
Decode a sequence of characters representing a base-64-encoded Long, as produced by toBase64.
Decode a sequence of characters representing a base-64-encoded Long, as produced by toBase64. An empty range of characters will yield 0L. Leading "zero" digits will not cause overflow.
defines the mapping between characters in the string and 6-bit numbers.
ArithmeticException
if the resulting value overflows a Long.
IllegalArgumentException
if any characters in the specified
range are not in the specified base-64 alphabet.
Invert a base 64 alphabet, creating a function suitable for use in
fromBase64
.
Append a base-64 encoded Long to a StringBuilder.
Append a base-64 encoded Long to a StringBuilder.
The Base64 encoding uses the standard Base64 alphabet (with '+' and '/'). It does not pad the result. The representation is just like base 10 or base 16, where leading zero digits are omitted.
The number is treated as unsigned, so there is never a leading negative sign, and the representations of negative numbers are larger than positive numbers.
Convert this Long to a base 64 String, using the standard base 64 alphabet.
Efficient conversion between Longs and base 64 encoded strings.
This is intended for use in e.g. cache keys.