ByteBuf,
such as the generation of hex dump and swapping an integer's byte order.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final InternalLogger | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | appendPrettyHexDump(StringBuilder dump, Buffer buf)
Appends the prettified multi-line hexadecimal dump of the specified |
| public static void | appendPrettyHexDump(StringBuilder dump, Buffer buf, int offset, int length)
Appends the prettified multi-line hexadecimal dump of the specified |
| public static boolean | equals(Buffer first, int firstReaderOffset, Buffer second, int secondReaderOffset, int length)
Returns |
| public static byte[] | |
| public static byte[] | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static int | Returns: the number with reversed byte orderthe number with original byte order value)Reverses the byte order (endianness) of a medium |
| public static long | Returns: the number with reversed byte orderthe number with original byte order value)Reverses the byte order (endianness) of an unsigned integer |
| public static int | Returns: the number with reversed byte orderthe number with original byte order value)Reverses the byte order (endianness) of an unsigned medium |
| public static int | Returns: the number with reversed byte orderthe number with original byte order value)Reverses the byte order (endianness) of an unsigned short |
| public static Buffer | Returns: a cached thread-local direct buffer, if available.null otherwise.Returns a cached thread-local direct buffer, if available. |
| public static Buffer | writeAscii(BufferAllocator
The allocator used to allocate a new alloc, CharSequence Buffer.The characters to write into a buffer. seq)Encode a |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| MAX_CHAR_BUFFER_SIZE | back to summary |
|---|---|
| private static final int MAX_CHAR_BUFFER_SIZE | |
| THREAD_LOCAL_BUFFER_SIZE | back to summary |
|---|---|
| private static final int THREAD_LOCAL_BUFFER_SIZE | |
| BufferUtil | back to summary |
|---|---|
| private BufferUtil() | |
| appendPrettyHexDump | back to summary |
|---|---|
| public static void appendPrettyHexDump(StringBuilder dump, Buffer buf) Appends the prettified multi-line hexadecimal dump of the specified | |
| appendPrettyHexDump | back to summary |
|---|---|
| public static void appendPrettyHexDump(StringBuilder dump, Buffer buf, int offset, int length) Appends the prettified multi-line hexadecimal dump of the specified | |
| equals | back to summary |
|---|---|
| public static boolean equals(Buffer first, int firstReaderOffset, Buffer second, int secondReaderOffset, int length) Returns
| |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(Buffer buf) Create a copy of the underlying storage from | |
| getBytes | back to summary |
|---|---|
| public static byte[] getBytes(Buffer buf, int start, int length) Create a copy of the underlying storage from | |
| hexDump | back to summary |
|---|---|
| public static String hexDump(Buffer buffer) Returns a hex dump of the specified buffer's readable bytes. | |
| hexDump | back to summary |
|---|---|
| public static String hexDump(Buffer buffer, int fromIndex, int length) Returns a hex dump of the specified buffer's sub-region. | |
| hexDump | back to summary |
|---|---|
| public static String hexDump(byte[] array) Returns a hex dump of the specified byte array. | |
| hexDump | back to summary |
|---|---|
| public static String hexDump(byte[] array, int fromIndex, int length) Returns a hex dump of the specified byte array's sub-region. | |
| reverseMedium | back to summary |
|---|---|
| public static int reverseMedium(int value) Reverses the byte order (endianness) of a medium
| |
| reverseUnsignedInt | back to summary |
|---|---|
| public static long reverseUnsignedInt(long value) Reverses the byte order (endianness) of an unsigned integer
| |
| reverseUnsignedMedium | back to summary |
|---|---|
| public static int reverseUnsignedMedium(int value) Reverses the byte order (endianness) of an unsigned medium
| |
| reverseUnsignedShort | back to summary |
|---|---|
| public static int reverseUnsignedShort(int value) Reverses the byte order (endianness) of an unsigned short
| |
| threadLocalDirectBuffer | back to summary |
|---|---|
| public static Buffer threadLocalDirectBuffer() Returns a cached thread-local direct buffer, if available.
| |
| writeAscii | back to summary |
|---|---|
| public static Buffer writeAscii(BufferAllocator alloc, CharSequence seq) Encode a
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final char[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final char[] | |
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static String | |
| private static String |
| BYTE2CHAR | back to summary |
|---|---|
| private static final char[] BYTE2CHAR | |
| BYTE2HEX | back to summary |
|---|---|
| private static final String[] BYTE2HEX | |
| BYTEPADDING | back to summary |
|---|---|
| private static final String[] BYTEPADDING | |
| HEXDUMP_ROWPREFIXES | back to summary |
|---|---|
| private static final String[] HEXDUMP_ROWPREFIXES | |
| HEXDUMP_TABLE | back to summary |
|---|---|
| private static final char[] HEXDUMP_TABLE | |
| HEXPADDING | back to summary |
|---|---|
| private static final String[] HEXPADDING | |
| HexUtil | back to summary |
|---|---|
| private HexUtil() | |
| appendHexDumpRowPrefix | back to summary |
|---|---|
| private static void appendHexDumpRowPrefix(StringBuilder dump, int row, int rowStartIndex) | |
| appendPrettyHexDump | back to summary |
|---|---|
| private static void appendPrettyHexDump(StringBuilder dump, Buffer buf, int offset, int length) | |
| hexDump | back to summary |
|---|---|
| private static String hexDump(Buffer buffer, int fromIndex, int length) | |
| hexDump | back to summary |
|---|---|
| private static String hexDump(byte[] array, int fromIndex, int length) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final FastThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| BUFFER | back to summary |
|---|---|
| pack-priv static final FastThreadLocal<Buffer> BUFFER | |
| ThreadLocalDirectBufferHolder | back to summary |
|---|---|
| private ThreadLocalDirectBufferHolder() | |