Append the lower-case hex representation of the given long to the given StringBuilder.
Append the lower-case hex representation of the given long to the given StringBuilder.
Converts the given Long value into its signed decimal character representation.
Converts the given Long value into its signed decimal character representation.
The characters are placed into the given buffer *before* the given endIndex
(exclusively).
CAUTION: This algorithm cannot deal with Long.MinValue
, you'll need to special case this value!
Returns the int value of a given hex digit char.
Returns the int value of a given hex digit char. Note: this implementation is very fast (since it's branchless) and therefore does not perform ANY range checks!
Returns the lower-case hex digit corresponding to the last 4 bits of the given Int.
Returns the lower-case hex digit corresponding to the last 4 bits of the given Int. (fast branchless implementation)
Returns the lower-case hex digit corresponding to the last 4 bits of the given Long.
Returns the lower-case hex digit corresponding to the last 4 bits of the given Long. (fast branchless implementation)
Efficiently converts the given long into a lower-case hex string.
Computes the number of characters required for the signed decimal representation of the given integer.
Computes the number of hex digits required to represent the given integer.
Computes the number of hex digits required to represent the given integer. Leading zeros are not counted.
Returns a char array representing the given long in signed decimal representation.
Returns a String representing the given long in signed decimal representation.
Efficiently lower-cases the given character.
Efficiently lower-cases the given character. Note: only works for 7-bit ASCII letters.
Efficiently upper-cases the given character.
Efficiently upper-cases the given character. Note: only works for 7-bit ASCII letters.
Returns the upper-case hex digit corresponding to the last 4 bits of the given Int.
Returns the upper-case hex digit corresponding to the last 4 bits of the given Int. (fast branchless implementation)
Returns the upper-case hex digit corresponding to the last 4 bits of the given Long.
Returns the upper-case hex digit corresponding to the last 4 bits of the given Long. (fast branchless implementation)
Efficiently converts the given long into an upper-case hex string.