public class NativeUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
decodeMysqlThreeByteInteger(byte[] b) |
static int |
decodeMysqlThreeByteInteger(byte[] b,
int offset) |
static byte[] |
encodeMysqlThreeByteInteger(int i) |
static void |
encodeMysqlThreeByteInteger(int i,
byte[] b,
int offset) |
static int |
getBinaryEncodedLength(int type)
Get the length of a binary-encoded value of the given type.
|
public static byte[] encodeMysqlThreeByteInteger(int i)
public static void encodeMysqlThreeByteInteger(int i, byte[] b, int offset)
public static int decodeMysqlThreeByteInteger(byte[] b)
public static int decodeMysqlThreeByteInteger(byte[] b, int offset)
public static int getBinaryEncodedLength(int type)
type
- type