public class BinUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZEOF_INT |
static int |
SIZEOF_LONG |
static int |
SIZEOF_SHORT |
| Constructor and Description |
|---|
BinUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.math.BigDecimal |
readBd(byte[] buffer,
int offset) |
static java.math.BigInteger |
readBigInt(byte[] buffer,
int offset) |
static int |
readInt(byte[] buffer,
int offset) |
static long |
readLong(byte[] buffer,
int offset) |
static short |
readShort(byte[] buffer,
int offset) |
static java.lang.String |
readStr(byte[] buffer,
int offset) |
static int |
sizeOfBd(java.math.BigDecimal value) |
static int |
sizeOfBigInt(java.math.BigInteger value) |
static int |
sizeOfStr(java.lang.String value) |
static void |
writeBd(java.math.BigDecimal value,
byte[] buffer,
int offset) |
static void |
writeBigInt(java.math.BigInteger value,
byte[] buffer,
int offset) |
static void |
writeInt(int value,
byte[] buffer,
int offset) |
static void |
writeLong(long value,
byte[] buffer,
int offset) |
static void |
writeShort(short value,
byte[] buffer,
int offset) |
static void |
writeStr(java.lang.String value,
byte[] buffer,
int offset) |
public static final int SIZEOF_LONG
public static final int SIZEOF_INT
public static final int SIZEOF_SHORT
public static void writeInt(int value,
byte[] buffer,
int offset)
public static int readInt(byte[] buffer,
int offset)
public static void writeLong(long value,
byte[] buffer,
int offset)
public static long readLong(byte[] buffer,
int offset)
public static void writeStr(java.lang.String value,
byte[] buffer,
int offset)
public static int sizeOfStr(java.lang.String value)
public static java.lang.String readStr(byte[] buffer,
int offset)
public static void writeShort(short value,
byte[] buffer,
int offset)
public static short readShort(byte[] buffer,
int offset)
public static void writeBigInt(java.math.BigInteger value,
byte[] buffer,
int offset)
public static java.math.BigInteger readBigInt(byte[] buffer,
int offset)
public static int sizeOfBigInt(java.math.BigInteger value)
public static int sizeOfBd(java.math.BigDecimal value)
public static void writeBd(java.math.BigDecimal value,
byte[] buffer,
int offset)
public static java.math.BigDecimal readBd(byte[] buffer,
int offset)