
public class OBinaryProtocol extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_BYTE |
static int |
SIZE_CHAR |
static int |
SIZE_INT |
static int |
SIZE_LONG |
static int |
SIZE_SHORT |
| Constructor and Description |
|---|
OBinaryProtocol() |
| Modifier and Type | Method and Description |
|---|---|
static char |
bytes2char(byte[] b,
int offset) |
static int |
bytes2int(byte[] b)
Convert the byte array to an int.
|
static int |
bytes2int(byte[] b,
int offset)
Convert the byte array to an int starting from the given offset.
|
static int |
bytes2int(InputStream iStream) |
static long |
bytes2long(byte[] b) |
static long |
bytes2long(byte[] b,
int offset) |
static long |
bytes2long(InputStream iStream) |
static short |
bytes2short(byte[] b,
int offset) |
static int |
bytes2short(InputStream iStream) |
static byte[] |
char2bytes(char value,
byte[] b,
int iBeginOffset) |
static byte[] |
int2bytes(int value) |
static byte[] |
int2bytes(int value,
byte[] b,
int iBeginOffset) |
static int |
int2bytes(int value,
OutputStream iStream) |
static byte[] |
long2bytes(long value) |
static byte[] |
long2bytes(long value,
byte[] b,
int iBeginOffset) |
static int |
long2bytes(long value,
OutputStream iStream) |
static byte[] |
short2bytes(short value) |
static byte[] |
short2bytes(short value,
byte[] b,
int iBeginOffset) |
static int |
short2bytes(short value,
OutputStream iStream) |
public static final int SIZE_BYTE
public static final int SIZE_CHAR
public static final int SIZE_SHORT
public static final int SIZE_INT
public static final int SIZE_LONG
public static byte[] char2bytes(char value,
byte[] b,
int iBeginOffset)
public static int long2bytes(long value,
OutputStream iStream)
throws IOException
IOExceptionpublic static byte[] long2bytes(long value)
public static byte[] long2bytes(long value,
byte[] b,
int iBeginOffset)
public static int int2bytes(int value,
OutputStream iStream)
throws IOException
IOExceptionpublic static byte[] int2bytes(int value)
public static byte[] int2bytes(int value,
byte[] b,
int iBeginOffset)
public static int short2bytes(short value,
OutputStream iStream)
throws IOException
IOExceptionpublic static byte[] short2bytes(short value)
public static byte[] short2bytes(short value,
byte[] b,
int iBeginOffset)
public static long bytes2long(byte[] b)
public static long bytes2long(InputStream iStream) throws IOException
IOExceptionpublic static long bytes2long(byte[] b,
int offset)
public static int bytes2int(byte[] b)
b - The byte arraypublic static int bytes2int(InputStream iStream) throws IOException
IOExceptionpublic static int bytes2int(byte[] b,
int offset)
b - The byte arrayoffset - The array offsetpublic static int bytes2short(InputStream iStream) throws IOException
IOExceptionpublic static short bytes2short(byte[] b,
int offset)
public static char bytes2char(byte[] b,
int offset)
Copyright © 2009–2025 OrientDB. All rights reserved.