
public class OVarIntSerializer extends Object
| Constructor and Description |
|---|
OVarIntSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
readAsByte(BytesContainer bytes) |
static int |
readAsInteger(BytesContainer bytes) |
static long |
readAsLong(BytesContainer bytes) |
static short |
readAsShort(BytesContainer bytes) |
static long |
readSignedVarLong(BytesContainer bytes) |
static long |
readUnsignedVarLong(BytesContainer bytes) |
static int |
write(BytesContainer bytes,
long value) |
static void |
writeUnsignedVarLong(long value,
BytesContainer bos)
Encodes a value using the variable-length encoding from Google Protocol Buffers.
|
public static int write(BytesContainer bytes, long value)
public static short readAsShort(BytesContainer bytes)
public static long readAsLong(BytesContainer bytes)
public static int readAsInteger(BytesContainer bytes)
public static byte readAsByte(BytesContainer bytes)
public static void writeUnsignedVarLong(long value,
BytesContainer bos)
value - value to encodepublic static long readSignedVarLong(BytesContainer bytes)
bytes - to read bytes fromIllegalArgumentException - if variable-length value does not terminate after 9 bytes have been readpublic static long readUnsignedVarLong(BytesContainer bytes)
bytes - to read bytes fromIllegalArgumentException - if variable-length value does not terminate after 9 bytes have been readCopyright © 2009–2025 OrientDB. All rights reserved.