
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)
#writeSignedVarLong(long, DataOutput) instead. This method
treats negative input as like a large unsigned value.value - value to encodeout - to write bytes toIOException - if DataOutput throws IOExceptionpublic static long readSignedVarLong(BytesContainer bytes)
in - to read bytes fromIOException - if DataInput throws IOExceptionIllegalArgumentException - if variable-length value does not terminate after 9 bytes have been read#writeSignedVarLong(long, DataOutput)public static long readUnsignedVarLong(BytesContainer bytes)
Copyright © 2009–2025 OrientDB. All rights reserved.