public class VarIntData extends Data implements IntegerData
IntegerData.Endian, IntegerData.Helper| Modifier and Type | Field and Description |
|---|---|
long |
value |
static VarIntData |
ZERO |
helper| Constructor and Description |
|---|
VarIntData(byte[] bytes,
int offset,
int size,
long value) |
VarIntData(ByteArray data,
long value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
static VarIntData |
from(byte[] bytes) |
static VarIntData |
from(byte[] bytes,
int start) |
static VarIntData |
from(ByteArray data) |
static VarIntData |
from(long value) |
static VarIntData |
from(VarIntData data) |
int |
getIntValue() |
long |
getLongValue() |
int |
hashCode() |
java.lang.String |
toString() |
clone, concat, concat, equals, equals, equals, find, find, find, find, find, find, find, find, find, find, find, find, getBuffer, getByte, getBytes, getBytes, getBytes, getOffset, getSize, mutableCopy, random, slice, slice, toHexStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetInt16Value, getInt16Value, getInt32Value, getInt32Value, getUInt16Data, getUInt16Data, getUInt16Data, getUInt16Value, getUInt16Value, getUInt32Data, getUInt32Data, getUInt32Data, getUInt32Value, getUInt32Value, getValue, getValue, getValue, getValue, setValue, setValue, setValue, setValueadjust, adjustE, concat, concat, concat, concat, equals, equals, equals, find, find, find, find, find, find, find, find, find, find, find, find, find, find, getBuffer, getByte, getBytes, getBytes, getBytes, getOffset, getSize, hexEncode, slice, slice, slice, slice, toHexStringpublic final long value
public static final VarIntData ZERO
public VarIntData(ByteArray data, long value)
public VarIntData(byte[] bytes,
int offset,
int size,
long value)
public int getIntValue()
getIntValue in interface IntegerDatapublic long getLongValue()
getLongValue in interface IntegerDatapublic static VarIntData from(VarIntData data)
public static VarIntData from(ByteArray data)
public static VarIntData from(byte[] bytes)
public static VarIntData from(byte[] bytes, int start)
public static VarIntData from(long value)