
public class OVarIntSerializer extends Object
| Constructor and Description |
|---|
OVarIntSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
readAsByte(BytesContainer bytes) |
static int |
readAsInt(DataInput input) |
static int |
readAsInteger(BytesContainer bytes) |
static long |
readAsLong(BytesContainer bytes) |
static long |
readAsLong(DataInput input) |
static short |
readAsShort(BytesContainer bytes) |
static long |
readSignedVarLong(BytesContainer bytes) |
static long |
readSignedVarLong(DataInput bytes) |
static long |
readUnsignedVarLong(BytesContainer bytes) |
static long |
readUnsignedVarLong(DataInput bytes) |
static int |
write(BytesContainer bytes,
long value) |
static void |
write(DataOutput output,
long value) |
static void |
writeUnsignedVarLong(long value,
BytesContainer bos)
Encodes a value using the variable-length encoding from Google Protocol
Buffers.
|
static void |
writeUnsignedVarLong(long value,
DataOutput bos)
Encodes a value using the variable-length encoding from Google Protocol
Buffers.
|
public static void write(DataOutput output, long value) throws IOException
IOExceptionpublic static int write(BytesContainer bytes, long value)
public static int readAsInt(DataInput input) throws IOException
IOExceptionpublic static long readAsLong(DataInput input) throws IOException
IOExceptionpublic 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 void writeUnsignedVarLong(long value,
DataOutput bos)
throws IOException
value - value to encodeIOExceptionpublic 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 readSignedVarLong(DataInput bytes) throws IOException
bytes - to read bytes fromIllegalArgumentException - if variable-length value does not terminate after 9 bytes have
been readIOExceptionpublic static long readUnsignedVarLong(BytesContainer bytes)
bytes - to read bytes fromIllegalArgumentException - if variable-length value does not terminate after 9 bytes have
been readpublic static long readUnsignedVarLong(DataInput bytes) throws IOException
bytes - to read bytes fromIllegalArgumentException - if variable-length value does not terminate after 9 bytes have
been readIOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.