| Modifier and Type | Class and Description |
|---|---|
| private static class | ByteConverter.
Simple stack structure for non-negative |
| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger | |
| private static final BigInteger[] | |
| private static final BigInteger | |
| private static final int[] | |
| private static final int | |
| private static final long[] | |
| private static final int | |
| private static final short | |
| private static final short | |
| private static final short | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: parsed boolean value.The byte array to parse. bytes, int The starting index to read from bytes. idx)Parses a boolean value from the byte array. |
| public static void | bool(byte[]
The byte array to encode to. target, int The starting index in the byte array. idx, boolean The value to encode. value)Encodes a boolean value to the byte array. |
| public static int | Returns: integerarray of bytes that can be decoded as an integer bytes)Convert a variable length array of bytes to an integer |
| public static float | Returns: parsed float value.The byte array to parse. bytes, int The starting index of the parse in the byte array. idx)Parses a float value from the byte array. |
| public static void | float4(byte[]
The byte array to encode to. target, int The starting index in the byte array. idx, float The value to encode. value)Encodes a int value to the byte array. |
| public static double | Returns: parsed double value.The byte array to parse. bytes, int The starting index of the parse in the byte array. idx)Parses a double value from the byte array. |
| public static void | float8(byte[]
The byte array to encode to. target, int The starting index in the byte array. idx, double The value to encode. value)Encodes a int value to the byte array. |
| public static short | Returns: parsed short value.The byte array to parse. bytes, int The starting index of the parse in the byte array. idx)Parses a short value from the byte array. |
| public static void | int2(byte[]
The byte array to encode to. target, int The starting index in the byte array. idx, int The value to encode. value)Encodes a int value to the byte array. |
| public static int | Returns: parsed int value.The byte array to parse. bytes, int The starting index of the parse in the byte array. idx)Parses an int value from the byte array. |
| public static void | int4(byte[]
The byte array to encode to. target, int The starting index in the byte array. idx, int The value to encode. value)Encodes a int value to the byte array. |
| public static long | Returns: parsed long value.The byte array to parse. bytes, int The starting index of the parse in the byte array. idx)Parses a long value from the byte array. |
| public static void | int8(byte[]
The byte array to encode to. target, int The starting index in the byte array. idx, long The value to encode. value)Encodes a long value to the byte array. |
| public static Number | Returns: integerarray of bytes that can be decoded as an integer bytes)Convert a variable length array of bytes to an integer |
| public static Number | Returns: BigDecimal representation of numeric orDouble#NaN.array of bytes to be decoded from binary numeric representation. bytes, int index of the start position of the bytes array for number pos, int number of bytes to use, length is already encoded
in the binary format but this is used for double checking numBytes)Convert a variable length array of bytes to a |
| public static byte[] | Returns: The binary representation of nbr.The instance to represent in binary. nbr)Converts a non-null |
| private static BigInteger |
| BI_MAX_LONG | back to summary |
|---|---|
| private static final BigInteger BI_MAX_LONG | |
| BI_TEN_POWERS | back to summary |
|---|---|
| private static final BigInteger[] BI_TEN_POWERS | |
| BI_TEN_THOUSAND | back to summary |
|---|---|
| private static final BigInteger BI_TEN_THOUSAND | |
| INT_TEN_POWERS | back to summary |
|---|---|
| private static final int[] INT_TEN_POWERS | |
| LONG_BYTES | back to summary |
|---|---|
| private static final int LONG_BYTES | |
| LONG_TEN_POWERS | back to summary |
|---|---|
| private static final long[] LONG_TEN_POWERS | |
| NUMERIC_DSCALE_MASK | back to summary |
|---|---|
| private static final int NUMERIC_DSCALE_MASK | |
| NUMERIC_NAN | back to summary |
|---|---|
| private static final short NUMERIC_NAN | |
| NUMERIC_NEG | back to summary |
|---|---|
| private static final short NUMERIC_NEG | |
| NUMERIC_POS | back to summary |
|---|---|
| private static final short NUMERIC_POS | |
| SHORT_BYTES | back to summary |
|---|---|
| private static final int SHORT_BYTES | |
| ByteConverter | back to summary |
|---|---|
| private ByteConverter() | |
| bool | back to summary |
|---|---|
| public static boolean bool(byte[] bytes, int idx) Parses a boolean value from the byte array.
| |
| bool | back to summary |
|---|---|
| public static void bool(byte[] target, int idx, boolean value) Encodes a boolean value to the byte array.
| |
| bytesToInt | back to summary |
|---|---|
| public static int bytesToInt(byte[] bytes) Convert a variable length array of bytes to an integer
| |
| float4 | back to summary |
|---|---|
| public static float float4(byte[] bytes, int idx) Parses a float value from the byte array.
| |
| float4 | back to summary |
|---|---|
| public static void float4(byte[] target, int idx, float value) Encodes a int value to the byte array.
| |
| float8 | back to summary |
|---|---|
| public static double float8(byte[] bytes, int idx) Parses a double value from the byte array.
| |
| float8 | back to summary |
|---|---|
| public static void float8(byte[] target, int idx, double value) Encodes a int value to the byte array.
| |
| int2 | back to summary |
|---|---|
| public static short int2(byte[] bytes, int idx) Parses a short value from the byte array.
| |
| int2 | back to summary |
|---|---|
| public static void int2(byte[] target, int idx, int value) Encodes a int value to the byte array.
| |
| int4 | back to summary |
|---|---|
| public static int int4(byte[] bytes, int idx) Parses an int value from the byte array.
| |
| int4 | back to summary |
|---|---|
| public static void int4(byte[] target, int idx, int value) Encodes a int value to the byte array.
| |
| int8 | back to summary |
|---|---|
| public static long int8(byte[] bytes, int idx) Parses a long value from the byte array.
| |
| int8 | back to summary |
|---|---|
| public static void int8(byte[] target, int idx, long value) Encodes a long value to the byte array.
| |
| numeric | back to summary |
|---|---|
| public static Number numeric(byte[] bytes) Convert a variable length array of bytes to an integer
| |
| numeric | back to summary |
|---|---|
| public static Number numeric(byte[] bytes, int pos, int numBytes) Convert a variable length array of bytes to a
| |
| numeric | back to summary |
|---|---|
| public static byte[] numeric(BigDecimal nbr) Converts a non-null
| |
| tenPower | back to summary |
|---|---|
| private static BigInteger tenPower(int exponent) | |
short values.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | |
| public short | |
| public void | |
| public int |
| PositiveShorts | back to summary |
|---|---|
| pack-priv PositiveShorts() | |
| grow | back to summary |
|---|---|
| private void grow() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| pop | back to summary |
|---|---|
| public short pop() | |
| push | back to summary |
|---|---|
| public void push(short s) | |
| size | back to summary |
|---|---|
| public int size() | |