|
|||||||||
| 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.LBMSDMField
com.latencybusters.lbm.sdm.LBMSDMFieldUint64
public class LBMSDMFieldUint64
Implements an unsigned 64 bit integer SDM Field
| Field Summary | |
|---|---|
protected LBMSDMRawUint64 |
internalValue
The internal data storage for this field |
| Fields inherited from class com.latencybusters.lbm.sdm.LBMSDM |
|---|
DEBUG_BASIC, debug_level, DEBUG_VERBOSE_PARSING |
| Constructor Summary | |
|---|---|
protected |
LBMSDMFieldUint64(short type,
java.lang.String name)
Constructor for array subclasses |
|
LBMSDMFieldUint64(java.lang.String name)
Constructor for an empty unsigned 64 bit integer field. |
|
LBMSDMFieldUint64(java.lang.String name,
java.math.BigInteger v)
Constructor for a unsigned 64 bit integer field with a known BigInteger |
|
LBMSDMFieldUint64(java.lang.String name,
LBMSDMRawUint64 v)
Constructor for a unsigned 64 bit integer field with a known LBMSDMRawUint64 |
| Method Summary | |
|---|---|
LBMSDMFieldUint64 |
clone()
Get a copy of this object |
static int |
fixed_size()
Get the length of base field |
int |
format(byte[] buf,
int offset)
Format the unsigned 64 bit integer value into a byte buffer |
protected static int |
format(byte[] buf,
int offset,
LBMSDMRawUint64 v)
Format an unsigned 64 bit integer value into a byte buffer |
int |
get_base_len()
Get the length of formatted field This is used by the respective array class |
int |
get_len()
Get the length of formatted field |
LBMSDMRawUint64 |
get()
Get the raw unsigned 64 bit integer field as an int |
int |
parse(byte[] buf,
int offset)
Parse a byte buffer and store the value |
void |
set(java.math.BigInteger v)
Set the raw unsigned 64 bit integer from a BigInteger object. |
void |
set(LBMSDMRawUint64 v)
Set the raw unsigned 64 bit integer from an LBMSDMRawUint64 object. |
java.math.BigInteger |
toBigInteger()
Get the unsigned 64 integer as a big integer |
java.lang.String |
toDbgString()
Get a string useful for debugging |
java.lang.String |
toString()
Get the string form of the unsigned 64 bit integer |
| Methods inherited from class com.latencybusters.lbm.sdm.LBMSDMField |
|---|
add_element, append, format_name, format_type, get_name, getType, getType, getTypeString, internalString, isNull, length, name_len, remove, sameBaseType, sameType, set_name, set, setNull, type_len |
| 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 |
|---|
protected LBMSDMRawUint64 internalValue
| Constructor Detail |
|---|
public LBMSDMFieldUint64(java.lang.String name)
throws LBMSDMException
name - The field name
LBMSDMException
public LBMSDMFieldUint64(java.lang.String name,
java.math.BigInteger v)
throws LBMSDMException
name - The field namev - The BigInteger to be used as the field value
LBMSDMUnsignedException - when the passed in int is negative
LBMSDMOutOfRangeException - when the passed in int is greater than 18446744073709551615
LBMSDMException - when an unexpected error occurs within LBMSDM
public LBMSDMFieldUint64(java.lang.String name,
LBMSDMRawUint64 v)
throws LBMSDMException
name - The field namev - The LBMSDMRawUint64 to be used as the field value
LBMSDMException - when an unexpected error occurs within LBMSDM
protected LBMSDMFieldUint64(short type,
java.lang.String name)
type - The field type to be createdname - The name of the field to be created| Method Detail |
|---|
public LBMSDMRawUint64 get()
public static int fixed_size()
public int get_len()
get_len in class LBMSDMFieldpublic final int get_base_len()
public void set(LBMSDMRawUint64 v)
throws LBMSDMException
v - The LBMSDMRawUint64 value to be set
LBMSDMUnsignedException - when the passed in int is negative
LBMSDMOutOfRangeException - when the passed in int is greater than 18446744073709551615
LBMSDMException - when an unexpected error occurs within LBMSDM
public void set(java.math.BigInteger v)
throws LBMSDMException
v - The BigInteger value to be set
LBMSDMUnsignedException - when the passed in int is negative
LBMSDMOutOfRangeException - when the passed in int is greater than 18446744073709551615
LBMSDMException - when an unexpected error occurs within LBMSDMpublic java.lang.String toDbgString()
toDbgString in class LBMSDMField
protected static int format(byte[] buf,
int offset,
LBMSDMRawUint64 v)
throws LBMSDMException
buf - The buffer to contain the formatted valueoffset - The offset in to the buffer to start formattingv - The value of the int64 to be formatted
LBMSDMException
public int format(byte[] buf,
int offset)
throws LBMSDMException
format in class LBMSDMFieldbuf - The buffer to contain the formatted valueoffset - The offset in to the buffer to start formatting
LBMSDMException - when an unexpected error occurs within LBMSDMpublic java.lang.String toString()
toString in class java.lang.Object
public int parse(byte[] buf,
int offset)
throws LBMSDMException
parse in class LBMSDMFieldbuf - The byte buffer to be parsed for the unsigned 64 bit integeroffset - The offset to begin parsing the buffer
LBMSDMCannotConvertException - if there is not enough data in the buffer
LBMSDMException - when an unexpected error occurs within LBMSDM
public LBMSDMFieldUint64 clone()
throws java.lang.CloneNotSupportedException
clone in class LBMSDMFieldjava.lang.CloneNotSupportedException
public java.math.BigInteger toBigInteger()
throws LBMSDMException
LBMSDMException - if a big integer can not be returned
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||