| Modifier and Type | Field and Description |
|---|---|
| public static final int | MEDIUM_BYTES
The size of a medium in |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | encodeUnsignedMedium(ByteBuf
the byteBuf, int ByteBuf into which to write the bitsthe medium integer to encode i)Encode an unsigned medium integer on 3 bytes / 24 bits. |
| public static int | Returns: theint if greater than or equal to zerothe i, String int to testdetail message to be used in the event that a message)IllegalArgumentException
is thrownRequires that an |
| public static long | Returns: thelong if greater than zerothe l, String long to testdetail message to be used in the event that a message)IllegalArgumentException
is thrownRequires that a |
| public static int | Returns: theint if greater than zerothe i, String int to testdetail message to be used in the event that a message)IllegalArgumentException
is thrownRequires that an |
| public static int | Returns: theint if it can be represented as an unsigned bytethe i)int to testRequires that an |
| public static int | Returns: theint if it can be represented as an unsigned mediumthe i)int to testRequires that an |
| public static int | Returns: theint if it can be represented as an unsigned shortthe i)int to testRequires that an |
| MEDIUM_BYTES | back to summary |
|---|---|
| public static final int MEDIUM_BYTES The size of a medium in | |
| UNSIGNED_BYTE_MAX_VALUE | back to summary |
|---|---|
| private static final int UNSIGNED_BYTE_MAX_VALUE | |
| UNSIGNED_BYTE_SIZE | back to summary |
|---|---|
| private static final int UNSIGNED_BYTE_SIZE | |
| UNSIGNED_MEDIUM_MAX_VALUE | back to summary |
|---|---|
| private static final int UNSIGNED_MEDIUM_MAX_VALUE | |
| UNSIGNED_MEDIUM_SIZE | back to summary |
|---|---|
| private static final int UNSIGNED_MEDIUM_SIZE | |
| UNSIGNED_SHORT_MAX_VALUE | back to summary |
|---|---|
| private static final int UNSIGNED_SHORT_MAX_VALUE | |
| UNSIGNED_SHORT_SIZE | back to summary |
|---|---|
| private static final int UNSIGNED_SHORT_SIZE | |
| NumberUtils | back to summary |
|---|---|
| private NumberUtils() | |
| encodeUnsignedMedium | back to summary |
|---|---|
| public static void encodeUnsignedMedium(ByteBuf byteBuf, int i) Encode an unsigned medium integer on 3 bytes / 24 bits. This can be decoded directly by the
| |
| requireNonNegative | back to summary |
|---|---|
| public static int requireNonNegative(int i, String message) Requires that an
| |
| requirePositive | back to summary |
|---|---|
| public static long requirePositive(long l, String message) Requires that a
| |
| requirePositive | back to summary |
|---|---|
| public static int requirePositive(int i, String message) Requires that an
| |
| requireUnsignedByte | back to summary |
|---|---|
| public static int requireUnsignedByte(int i) Requires that an
| |
| requireUnsignedMedium | back to summary |
|---|---|
| public static int requireUnsignedMedium(int i) Requires that an
| |
| requireUnsignedShort | back to summary |
|---|---|
| public static int requireUnsignedShort(int i) Requires that an
| |