| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int | |
| pack-priv static final int | |
| private static final ThreadLocal | |
| private static final byte[] | |
| private static final char[] | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| private static char[] | |
| public static byte | Returns: the resultingbytethe character sequence to be decoded chars, int the starting offset in the offset)CharSequence.Decodes the specified two character sequence, and returns the resulting
|
| public static void | byteToBase16(byte
value to convert value, char[] destination array dest, int offset destOffset)Converts the byte to base16 string. |
| private static byte | |
| public static String | |
| public static String | Returns: string representation of the long- trace id high part idHigh, long - trace id low part idLow)Converts longs into string. |
| public static long[] | Returns: long array from string. Either contains high and low or just low trace idthe base8 or base16 representation of the chars)longReturns the |
| private static char[] | |
| private static boolean | |
| private static boolean | |
| private static void | |
| public static boolean | Returns: true if valid base16 stringto check value)Checks if string is valid base16. |
| public static long | Returns: long value from stringthe base16 representation of the chars)longReturns the |
| pack-priv static long | Returns: long from base16 stringthe base16 representation of the chars, int offset)longReturns the |
| public static void | longToBase16String(long
value to convert value, char[] destination array dest, int offset destOffset)Converts the long to base16 string. |
| ALPHABET | back to summary |
|---|---|
| private static final String ALPHABET | |
| ASCII_CHARACTERS | back to summary |
|---|---|
| private static final int ASCII_CHARACTERS | |
| BYTE_BASE16 | back to summary |
|---|---|
| pack-priv static final int BYTE_BASE16 | |
| charBuffer | back to summary |
|---|---|
private static final ThreadLocal<char[]> charBuffer
| |
| DECODING | back to summary |
|---|---|
| private static final byte[] DECODING | |
| ENCODING | back to summary |
|---|---|
| private static final char[] ENCODING | |
| LONG_BASE16 | back to summary |
|---|---|
| pack-priv static final int LONG_BASE16 | |
| LONG_BYTES | back to summary |
|---|---|
| pack-priv static final int LONG_BYTES | |
| EncodingUtils | back to summary |
|---|---|
| private EncodingUtils() | |
| buildDecodingArray | back to summary |
|---|---|
| private static byte[] buildDecodingArray() | |
| buildEncodingArray | back to summary |
|---|---|
| private static char[] buildEncodingArray() | |
| byteFromBase16String | back to summary |
|---|---|
| public static byte byteFromBase16String(CharSequence chars, int offset) Decodes the specified two character sequence, and returns the resulting
| |
| byteToBase16 | back to summary |
|---|---|
| public static void byteToBase16(byte value, char[] dest, int destOffset) Converts the byte to base16 string.
| |
| decodeByte | back to summary |
|---|---|
| private static byte decodeByte(char hi, char lo) | |
| fromLong | back to summary |
|---|---|
| public static String fromLong(long id) Converts long into string.
| |
| fromLongs | back to summary |
|---|---|
| public static String fromLongs(long idHigh, long idLow) Converts longs into string.
| |
| fromString | back to summary |
|---|---|
| public static long[] fromString(CharSequence chars) Returns the
| |
| getTemporaryBuffer | back to summary |
|---|---|
| private static char[] getTemporaryBuffer() | |
| isDigit | back to summary |
|---|---|
| private static boolean isDigit(char b) | |
| isLowercaseHexCharacter | back to summary |
|---|---|
| private static boolean isLowercaseHexCharacter(char b) | |
| isTrue | back to summary |
|---|---|
| private static void isTrue(boolean expression, String text) | |
| isValidBase16String | back to summary |
|---|---|
| public static boolean isValidBase16String(CharSequence value) Checks if string is valid base16.
| |
| longFromBase16String | back to summary |
|---|---|
| public static long longFromBase16String(CharSequence chars) Returns the
| |
| longFromBase16String | back to summary |
|---|---|
| pack-priv static long longFromBase16String(CharSequence chars, int offset) Returns the
| |
| longToBase16String | back to summary |
|---|---|
| public static void longToBase16String(long value, char[] dest, int destOffset) Converts the long to base16 string.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static long | lenientLowerHexToUnsignedLong(CharSequence
the sequence that contains a lower-hex encoded unsigned long. value, int the inclusive begin index:
index of the first lower-hex character
representing the unsigned long. beginIndex, int the exclusive end index: index after the last lower-hex character representing the unsigned long. endIndex)Parses a 16 character lower-hex string with no prefix into an unsigned long, starting at the specified index., but returns zero on invalid input. |
| pack-priv static String | |
| pack-priv static void | |
| pack-priv static void |
| HEX_DIGITS | back to summary |
|---|---|
| pack-priv static final char[] HEX_DIGITS | |
| HexCodec | back to summary |
|---|---|
| private HexCodec() | |
| lenientLowerHexToUnsignedLong | back to summary |
|---|---|
| pack-priv static long lenientLowerHexToUnsignedLong(CharSequence value, int beginIndex, int endIndex) Parses a 16 character lower-hex string with no prefix into an unsigned long, starting at the specified index., but returns zero on invalid input.
| |
| toLowerHex | back to summary |
|---|---|
| pack-priv static String toLowerHex(long v) Inspired by | |
| writeHexByte | back to summary |
|---|---|
| pack-priv static void writeHexByte(char[] data, int pos, byte b) | |
| writeHexLong | back to summary |
|---|---|
| pack-priv static void writeHexLong(char[] data, int pos, long v) Inspired by | |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static char[] |
| PARSE_BUFFER | back to summary |
|---|---|
| private static final ThreadLocal<char[]> PARSE_BUFFER | |
| RecyclableBuffers | back to summary |
|---|---|
| private RecyclableBuffers() | |
| parseBuffer | back to summary |
|---|---|
| pack-priv static char[] parseBuffer() Returns a | |