public class OceanBaseSerialize extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
OB_MAX_V1B |
static long |
OB_MAX_V2B |
static long |
OB_MAX_V3B |
static long |
OB_MAX_V4B |
static long |
OB_MAX_V5B |
static long |
OB_MAX_V6B |
static long |
OB_MAX_V7B |
static long |
OB_MAX_V8B |
static long |
OB_MAX_V9B |
| Constructor and Description |
|---|
OceanBaseSerialize() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
decode_i8(Buffer buf) |
static byte |
decode_int8_t(Buffer buf) |
static long |
decode_vi64(Buffer buf) |
static byte[] |
decode_vstr_nocopy(Buffer buf) |
static void |
encode_i8(Buffer buf,
byte val) |
static void |
encode_int8_t(Buffer buf,
byte val) |
static void |
encode_vi64(Buffer buf,
long val)
Encode a integer (up to 64bit) in variable length encoding
|
static void |
encode_vstr_with_len(Buffer buf,
byte[] vbuf,
long vlen)
Encode a buf as vstr(int64,data,null)
|
static long |
encoded_length_vi64(long val) |
static long |
encoded_length_vstr_with_len(long len)
Computes the encoded length of vstr(int64,data,null)
|
public static long OB_MAX_V1B
public static long OB_MAX_V2B
public static long OB_MAX_V3B
public static long OB_MAX_V4B
public static long OB_MAX_V5B
public static long OB_MAX_V6B
public static long OB_MAX_V7B
public static long OB_MAX_V8B
public static long OB_MAX_V9B
public static long encoded_length_vi64(long val)
public static long encoded_length_vstr_with_len(long len)
len - string lengthpublic static void encode_vstr_with_len(Buffer buf, byte[] vbuf, long vlen) throws IOException
buf - pointer to the destination buffervbuf - pointer to the start of the input buffervlen - length of the input bufferIOExceptionpublic static void encode_int8_t(Buffer buf, byte val) throws IOException
IOExceptionpublic static void encode_i8(Buffer buf, byte val) throws IOException
IOExceptionpublic static void encode_vi64(Buffer buf, long val) throws IOException
buf - pointer to the destination bufferval - value to encodeIOExceptionpublic static byte decode_int8_t(Buffer buf) throws IOException
IOExceptionpublic static byte decode_i8(Buffer buf) throws IOException
IOExceptionpublic static long decode_vi64(Buffer buf) throws IOException
IOExceptionpublic static byte[] decode_vstr_nocopy(Buffer buf) throws IOException
IOExceptionCopyright © 2022 oceanbase.com. All rights reserved.