|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.latencybusters.lbm.sdm.LBMSDM
com.latencybusters.lbm.sdm.LBMSDMRaw
com.latencybusters.lbm.sdm.LBMSDMRawUint64
public class LBMSDMRawUint64
An LBMSDMRawUint64 is a helper class to minimise the effort of formatting and parsing unsigned 64 bit integers
| Field Summary | |
|---|---|
static int |
length
The number of bytes needed to store a raw LBMSDMRawUint64 |
| Fields inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
DEBUG_BASIC, debug_level, DEBUG_VERBOSE_PARSING |
| Constructor Summary | |
|---|---|
LBMSDMRawUint64()
Create a raw uint64 field, defaulting to 0 |
|
LBMSDMRawUint64(java.math.BigInteger v)
Create a raw uint64 field providing the value as a BigInteger |
|
| Method Summary | |
|---|---|
LBMSDMRawUint64 |
clone()
Get a copy of this object |
int |
compareTo(java.math.BigInteger bi)
Compare to another BigInteger |
int |
format(byte[] buf,
int offset)
Format the raw uint64 value into a byte buffer |
static int |
format(byte[] buf,
int offset,
java.math.BigInteger v)
Format an uint64 value into a byte buffer |
java.math.BigInteger |
get()
Get a raw uint64 field as a BigInteger |
static java.math.BigInteger |
parse_s(byte[] buf,
int offset)
Parse the raw uint64 value from a byte buffer |
int |
parse(byte[] buf,
int offset)
Parse the raw uint64 value from a byte buffer in to the object |
void |
set(java.math.BigInteger v)
Set a raw uint64 field providing the value as a BigInteger |
java.math.BigInteger |
toBigInteger()
Get the long representation of the uint64 |
java.lang.String |
toString()
Get a string version of an uint64 |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMRaw |
|---|
toDbgString |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
log, set_debug_level |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int length
| Constructor Detail |
|---|
public LBMSDMRawUint64()
throws LBMSDMException
LBMSDMException
public LBMSDMRawUint64(java.math.BigInteger v)
throws LBMSDMException
v - The BigInteger to seed this raw object
LBMSDMException| Method Detail |
|---|
public void set(java.math.BigInteger v)
v - The BigInteger this raw object is to use
public java.math.BigInteger get()
throws LBMSDMException
LBMSDMException
public static int format(byte[] buf,
int offset,
java.math.BigInteger v)
throws LBMSDMException
buf - The buffer to contain the formatted valueoffset - The offset in to the buffer to start formattingv - The value of the uint64 to be formatted as a long
LBMSDMException
public int format(byte[] buf,
int offset)
throws LBMSDMException
buf - The buffer to contain the formatted valueoffset - The offset in to the buffer to start formatting
LBMSDMExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public static java.math.BigInteger parse_s(byte[] buf,
int offset)
throws LBMSDMException
buf - The buffer that contains the formatted valueoffset - The offset in to the buffer to start parsing
LBMSDMException
public int parse(byte[] buf,
int offset)
throws LBMSDMException
buf - The buffer that contains the formatted valueoffset - The offset in to the buffer to start parsing
LBMSDMExceptionpublic java.math.BigInteger toBigInteger()
public int compareTo(java.math.BigInteger bi)
bi - The BigInteger to be compared to
public LBMSDMRawUint64 clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||