java.math.BigDecimal, double, or
long.
| Modifier and Type | Field and Description |
|---|---|
| private static final MessageUtil | |
| public static final int | PACKED_DECIMAL
Packed Decimal representation |
| private static final int[][] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final int | Returns: the number of bytes writtenBuffer to which to write the packed decimal buffer, int Offset into the buffer at which to write offset, BigDecimal The BigDecimal to write b, int Its precision declaredPrecision, int Its scale declaredScale)Write a Java |
| private static final int[] | |
| pack-priv static BigDecimal | getBigDecimal(byte[] buffer, int offset, int precision, int scale)
Build a |
| pack-priv static double | getDouble(byte[] buffer, int offset, int precision, int scale)
Build a Java |
| pack-priv static long | getLong(byte[] buffer, int offset, int precision, int scale)
Build a Java |
| private static final int | packedNybblesToInt(byte[] buffer, int offset, int startNybble, int numberOfNybbles)
Convert a range of packed nybbles (up to 9 digits without overflow) to an int. |
| private static final long | packedNybblesToLong(byte[] buffer, int offset, int startNybble, int numberOfNybbles)
Convert a range of packed nybbles (up to 18 digits without overflow) to a long. |
| msgutil | back to summary |
|---|---|
| private static final MessageUtil msgutil | |
| PACKED_DECIMAL | back to summary |
|---|---|
| public static final int PACKED_DECIMAL Packed Decimal representation | |
| tenRadixMagnitude | back to summary |
|---|---|
| private static final int[][] tenRadixMagnitude | |
| Decimal | back to summary |
|---|---|
| private Decimal() | |
| bigDecimalToPackedDecimalBytes | back to summary |
|---|---|
| public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, BigDecimal b, int declaredPrecision, int declaredScale) throws SqlException Write a Java
| |
| computeMagnitude | back to summary |
|---|---|
| private static final int[] computeMagnitude(int[] input) Compute the int array of magnitude from input value segments. | |
| getBigDecimal | back to summary |
|---|---|
| pack-priv static BigDecimal getBigDecimal(byte[] buffer, int offset, int precision, int scale) Build a
| |
| getDouble | back to summary |
|---|---|
| pack-priv static double getDouble(byte[] buffer, int offset, int precision, int scale) Build a Java
| |
| getLong | back to summary |
|---|---|
| pack-priv static long getLong(byte[] buffer, int offset, int precision, int scale) Build a Java
| |
| packedNybblesToInt | back to summary |
|---|---|
| private static final int packedNybblesToInt(byte[] buffer, int offset, int startNybble, int numberOfNybbles) Convert a range of packed nybbles (up to 9 digits without overflow) to an int. Note that for performance purpose, it does not do array-out-of-bound checking. | |
| packedNybblesToLong | back to summary |
|---|---|
| private static final long packedNybblesToLong(byte[] buffer, int offset, int startNybble, int numberOfNybbles) Convert a range of packed nybbles (up to 18 digits without overflow) to a long. Note that for performance purpose, it does not do array-out-of-bound checking. | |