UM .NET API
6.16.1
|
Implements an unsigned 64 bit integer SDM Field. More...
Public Member Functions | |
override int | get_len () |
Get the length of formatted field. More... | |
int | get_base_len () |
Get the length of formatted field This is used by the respective array class. More... | |
virtual void | set (LBMSDMRawUint64 v) |
Set the raw unsigned 64 bit integer from an LBMSDMRawUint64 object. More... | |
virtual void | set (ulong v) |
Set the raw unsigned 64 bit integer from a BigInteger object. More... | |
LBMSDMFieldUint64 (System.String name) | |
Constructor for an empty unsigned 64 bit integer field. More... | |
LBMSDMFieldUint64 (System.String name, ulong v) | |
Constructor for a unsigned 64 bit integer field with a known BigInteger. More... | |
LBMSDMFieldUint64 (System.String name, LBMSDMRawUint64 v) | |
Constructor for a unsigned 64 bit integer field with a known LBMSDMRawUint64. More... | |
override System.String | toDbgString () |
Get a string useful for debugging. More... | |
override int | format (byte[] buf, int offset) |
Format the unsigned 64 bit integer value into a byte buffer. More... | |
override System.String | ToString () |
Get the string form of the unsigned 64 bit integer. More... | |
override int | parse (byte[] buf, int offset) |
Parse a byte buffer and store the value. More... | |
override System.Object | Clone () |
Get a copy of this object. More... | |
virtual ulong | get () |
Get the unsigned 64 integer as a ulong. More... | |
virtual short | getType () |
Get the type of this field. More... | |
System.String | getTypeString () |
Get a string representing this field type. More... | |
virtual bool | sameType (LBMSDMField f) |
Compare the type of the field to this field. More... | |
virtual bool | sameBaseType (LBMSDMField f) |
Compare the base type of the field to this field. More... | |
virtual System.String | get_name () |
Get the field name. More... | |
virtual void | set_name (System.String new_name) |
Set the name of this field. A copy of the name will be made. More... | |
virtual void | set (LBMSDMField f, int arrayidx) |
This is overridden by array classes. More... | |
virtual void | add_element (LBMSDMField newfield) |
Add an element to an array from a field. More... | |
virtual void | append (LBMSDMField newfield) |
This is overridden by array classes. More... | |
virtual System.String | internalString (System.String sname, System.String sval) |
Create a string based on the internal representation (includes the type) More... | |
virtual int | name_len () |
Get the length of this fields name in raw form. This is only needed by LBMSDMessage to format a raw message. More... | |
virtual int | type_len () |
Get the length of the type field in raw form. This is only needed by LBMSDMessage to format a raw message. More... | |
virtual int | format_name (byte[] buf, int offset) |
Format into a byte buffer the name of this field. Only needed by LBMSDMessage to format messages. More... | |
virtual int | format_type (byte[] buf, int offset) |
Format into a byte buffer the type of this field. Only needed by LBMSDMessage to format messages. More... | |
virtual int | length () |
Return the number of elements in an array. More... | |
virtual void | remove (int element) |
Remove an element from an array class. More... | |
virtual bool | isNull () |
Test to see if this field is a null field (I.E. a field with no data) More... | |
virtual void | setNull () |
Set this field to a null value - discarding current value (if any) | |
virtual void | set_debug_level (int level) |
Set the debug level for processing this SDM message. Currently all debugs go to standard out. More... | |
virtual void | log (System.String s) |
Log an event. If debug level is set greater than 0, output to stderr. More... | |
Static Public Member Functions | |
static int | fixed_size () |
Get the length of base field. More... | |
static short | getType (System.String typeName, bool isarray) |
Get the TYPE_XXX value for a given string. Recognised strings are: boolean, int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, decimal, timestamp, message, string, unicode, blob. More... | |
Public Attributes | |
const int | MAX_FIELD_NAME_LENGTH = 255 |
Maximum length of a field name. | |
const short | TYPE_INVALID = 0 |
SDM field type: Type is invalid. | |
const short | TYPE_BOOLEAN = 1 |
SDM field type: Boolean (non-zero is true; zero is false). | |
const short | TYPE_INT8 = 2 |
SDM field type: 8-bit signed integer. | |
const short | TYPE_UINT8 = 3 |
SDM field type: 8-bit unsigned integer. | |
const short | TYPE_INT16 = 4 |
SDM field type: 16-bit signed integer. | |
const short | TYPE_UINT16 = 5 |
SDM field type: 16-bit unsigned integer. | |
const short | TYPE_INT32 = 6 |
SDM field type: 32-bit signed integer. | |
const short | TYPE_UINT32 = 7 |
SDM field type: 32-bit unsigned integer. | |
const short | TYPE_INT64 = 8 |
SDM field type: 64-bit signed integer. | |
const short | TYPE_UINT64 = 9 |
SDM field type: 64-bit unsigned integer. | |
const short | TYPE_FLOAT = 10 |
SDM field type: Single-precision floating point. | |
const short | TYPE_DOUBLE = 11 |
SDM field type: Double-precision floating point. | |
const short | TYPE_DECIMAL = 12 |
SDM field type: Decimal number. | |
const short | TYPE_TIMESTAMP = 13 |
SDM field type: Seconds and microseconds since the epoch (UTC). | |
const short | TYPE_MESSAGE = 14 |
SDM field type: Nested SDM message. | |
const short | TYPE_STRING = 15 |
SDM field type: Character string (ASCIZ). | |
const short | TYPE_UNICODE = 16 |
SDM field type: Unicode string. | |
const short | TYPE_BLOB = 17 |
SDM field type: Binary Large Object (BLOB). | |
const short | TYPE_ARRAY_BOOLEAN = TYPE_BOOLEAN | TYPE_MODIFIER_ARRAY |
SDM field type: Array of Booleans (non-zero is true; zero is false). | |
const short | TYPE_ARRAY_INT8 = TYPE_INT8 | TYPE_MODIFIER_ARRAY |
SDM field type: Array of 8-bit signed integers. | |
const short | TYPE_ARRAY_UINT8 = (short) ((TYPE_UINT8 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 8-bit unsigned integers. | |
const short | TYPE_ARRAY_INT16 = (short) ((TYPE_INT16 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 16-bit signed integers. | |
const short | TYPE_ARRAY_UINT16 = (short) ((TYPE_UINT16 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 16-bit unsigned integers. | |
const short | TYPE_ARRAY_INT32 = (short) ((TYPE_INT32 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 32-bit signed integers. | |
const short | TYPE_ARRAY_UINT32 = (short) ((TYPE_UINT32 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 32-bit unsigned integers. | |
const short | TYPE_ARRAY_INT64 = (short) ((TYPE_INT64 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 64-bit signed integers. | |
const short | TYPE_ARRAY_UINT64 = (short) ((TYPE_UINT64 | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of 64-bit unsigned integers. | |
const short | TYPE_ARRAY_FLOAT = (short) ((TYPE_FLOAT | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of single-precision floating points. | |
const short | TYPE_ARRAY_DOUBLE = (short) ((TYPE_DOUBLE | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of double-precision floating points. | |
const short | TYPE_ARRAY_DECIMAL = (short) ((TYPE_DECIMAL | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of decimal numbers. | |
const short | TYPE_ARRAY_TIMESTAMP = (short) ((TYPE_TIMESTAMP | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of timestamps (seconds and microseconds since the epoch (UTC)). | |
const short | TYPE_ARRAY_MESSAGE = (short) ((TYPE_MESSAGE | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of nested SDM messages. | |
const short | TYPE_ARRAY_STRING = (short) ((TYPE_STRING | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of character strings (ASCIZ). | |
const short | TYPE_ARRAY_UNICODE = (short) ((TYPE_UNICODE | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of unicode strings. | |
const short | TYPE_ARRAY_BLOB = (short) ((TYPE_BLOB | TYPE_MODIFIER_ARRAY)) |
SDM field type: Array of Binary Large Objects (BLOB). | |
const int | DEBUG_BASIC = 1 |
Debug flag for basic debug output. | |
const int | DEBUG_VERBOSE_PARSING = 2 |
Debug flag for verbose message parsing output. | |
Properties | |
virtual System.String | TypeString [get] |
Get a string representing this field type. More... | |
Implements an unsigned 64 bit integer SDM Field.
com.latencybusters.lbm.sdm.LBMSDMFieldUint64.LBMSDMFieldUint64 | ( | System.String | name | ) |
Constructor for an empty unsigned 64 bit integer field.
name | The field name |
com.latencybusters.lbm.sdm.LBMSDMFieldUint64.LBMSDMFieldUint64 | ( | System.String | name, |
ulong | v | ||
) |
Constructor for a unsigned 64 bit integer field with a known BigInteger.
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
name | The field name |
v | The BigInteger to be used as the field value |
com.latencybusters.lbm.sdm.LBMSDMFieldUint64.LBMSDMFieldUint64 | ( | System.String | name, |
LBMSDMRawUint64 | v | ||
) |
Constructor for a unsigned 64 bit integer field with a known LBMSDMRawUint64.
LBMSDMException when an unexpected error occurs within LBMSDM
name | The field name |
v | The LBMSDMRawUint64 to be used as the field value |
|
virtualinherited |
Add an element to an array from a field.
newfield | The new field to be added |
Referenced by com.latencybusters.lbm.sdm.LBMSDMFieldIterator.add_element().
|
virtualinherited |
This is overridden by array classes.
LBMSDMException when a non array field tries to call append()
newfield | The new field to be appended |
Reimplemented in com.latencybusters.lbm.sdm.LBMSDMArrayMessage, com.latencybusters.lbm.sdm.LBMSDMArrayUnicode, com.latencybusters.lbm.sdm.LBMSDMArrayDecimal, com.latencybusters.lbm.sdm.LBMSDMArrayBlob, com.latencybusters.lbm.sdm.LBMSDMArrayString, com.latencybusters.lbm.sdm.LBMSDMArrayUint64, com.latencybusters.lbm.sdm.LBMSDMArrayTimestamp, com.latencybusters.lbm.sdm.LBMSDMArrayDouble, com.latencybusters.lbm.sdm.LBMSDMArrayFloat, com.latencybusters.lbm.sdm.LBMSDMArrayInt16, com.latencybusters.lbm.sdm.LBMSDMArrayInt32, com.latencybusters.lbm.sdm.LBMSDMArrayInt64, com.latencybusters.lbm.sdm.LBMSDMArrayInt8, com.latencybusters.lbm.sdm.LBMSDMArrayUint32, com.latencybusters.lbm.sdm.LBMSDMArrayUint8, com.latencybusters.lbm.sdm.LBMSDMArrayUint16, and com.latencybusters.lbm.sdm.LBMSDMArrayBool.
|
virtual |
Get a copy of this object.
Reimplemented from com.latencybusters.lbm.sdm.LBMSDMField.
References com.latencybusters.lbm.sdm.LBMSDMRawUint64.Clone(), and com.latencybusters.lbm.sdm.LBMSDMFieldUint64.Clone().
Referenced by com.latencybusters.lbm.sdm.LBMSDMFieldUint64.Clone().
|
static |
Get the length of base field.
|
virtual |
Format the unsigned 64 bit integer value into a byte buffer.
buf | The buffer to contain the formatted value |
offset | The offset in to the buffer to start formatting |
Reimplemented from com.latencybusters.lbm.sdm.LBMSDMField.
References com.latencybusters.lbm.sdm.LBMSDMRawUint64.format().
|
virtualinherited |
Format into a byte buffer the name of this field. Only needed by LBMSDMessage to format messages.
LBMSDMException when an unexpected error occurs within LBMSDM
buf | The buffer to format the message in to |
offset | The offset in to the byte buffer where the message should be placed |
References com.latencybusters.lbm.sdm.LBMSDMFieldString.format_short().
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.data().
|
virtualinherited |
Format into a byte buffer the type of this field. Only needed by LBMSDMessage to format messages.
LBMSDMException when an unexpected error occurs within LBMSDM
buf | The buffer to format the type in to |
offset | The offset in to the byte buffer where the type should be placed |
References com.latencybusters.lbm.sdm.LBMSDMRawUint16.format(), and com.latencybusters.lbm.sdm.LBMSDMRawUint16.length.
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.data().
|
virtual |
Get the unsigned 64 integer as a ulong.
LBMSDMException if a big integer can not be returned
Reimplemented in com.latencybusters.lbm.sdm.LBMSDMArrayUint64.
References com.latencybusters.lbm.sdm.LBMSDMRawUint64.get().
int com.latencybusters.lbm.sdm.LBMSDMFieldUint64.get_base_len | ( | ) |
Get the length of formatted field This is used by the respective array class.
|
virtual |
Get the length of formatted field.
Reimplemented from com.latencybusters.lbm.sdm.LBMSDMField.
|
virtualinherited |
Get the field name.
Referenced by com.latencybusters.lbm.sdm.LBMSDMFields.add(), com.latencybusters.lbm.sdm.LBMSDMessage.data(), com.latencybusters.lbm.sdm.LBMSDMFields.locate(), and com.latencybusters.lbm.sdm.LBMSDMFields.set().
|
staticinherited |
Get the TYPE_XXX value for a given string. Recognised strings are: boolean, int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, decimal, timestamp, message, string, unicode, blob.
typeName | A string which needs translating to a short form |
isarray | A boolean indicating if an array type is required |
|
virtualinherited |
Get the type of this field.
|
inherited |
Get a string representing this field type.
|
virtualinherited |
Create a string based on the internal representation (includes the type)
sname | The field name |
sval | The field value in string form |
|
virtualinherited |
Test to see if this field is a null field (I.E. a field with no data)
|
virtualinherited |
Return the number of elements in an array.
LBMSDMNotArrayException if called for non array classes
Reimplemented in com.latencybusters.lbm.sdm.LBMSDMArrayBlob, com.latencybusters.lbm.sdm.LBMSDMArrayMessage, com.latencybusters.lbm.sdm.LBMSDMArrayUnicode, com.latencybusters.lbm.sdm.LBMSDMArrayDecimal, com.latencybusters.lbm.sdm.LBMSDMArrayUint64, com.latencybusters.lbm.sdm.LBMSDMArrayTimestamp, com.latencybusters.lbm.sdm.LBMSDMArrayString, com.latencybusters.lbm.sdm.LBMSDMArrayDouble, com.latencybusters.lbm.sdm.LBMSDMArrayFloat, com.latencybusters.lbm.sdm.LBMSDMArrayInt16, com.latencybusters.lbm.sdm.LBMSDMArrayInt32, com.latencybusters.lbm.sdm.LBMSDMArrayInt64, com.latencybusters.lbm.sdm.LBMSDMArrayInt8, com.latencybusters.lbm.sdm.LBMSDMArrayUint32, com.latencybusters.lbm.sdm.LBMSDMArrayUint8, com.latencybusters.lbm.sdm.LBMSDMArrayUint16, and com.latencybusters.lbm.sdm.LBMSDMArrayBool.
|
virtualinherited |
Log an event. If debug level is set greater than 0, output to stderr.
s | String containing the event to log |
|
virtualinherited |
Get the length of this fields name in raw form. This is only needed by LBMSDMessage to format a raw message.
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.data().
|
virtual |
Parse a byte buffer and store the value.
LBMSDMCannotConvertException if there is not enough data in the buffer
LBMSDMException when an unexpected error occurs within LBMSDM
buf | The byte buffer to be parsed for the unsigned 64 bit integer |
offset | The offset to begin parsing the buffer |
Reimplemented from com.latencybusters.lbm.sdm.LBMSDMField.
References com.latencybusters.lbm.sdm.LBMSDMRawUint64.parse().
|
virtualinherited |
Remove an element from an array class.
element | The array element to be removed |
Reimplemented in com.latencybusters.lbm.sdm.LBMSDMArrayMessage, com.latencybusters.lbm.sdm.LBMSDMArrayUnicode, com.latencybusters.lbm.sdm.LBMSDMArrayDecimal, com.latencybusters.lbm.sdm.LBMSDMArrayTimestamp, com.latencybusters.lbm.sdm.LBMSDMArrayUint64, com.latencybusters.lbm.sdm.LBMSDMArrayBlob, com.latencybusters.lbm.sdm.LBMSDMArrayString, com.latencybusters.lbm.sdm.LBMSDMArrayDouble, com.latencybusters.lbm.sdm.LBMSDMArrayFloat, com.latencybusters.lbm.sdm.LBMSDMArrayInt16, com.latencybusters.lbm.sdm.LBMSDMArrayInt32, com.latencybusters.lbm.sdm.LBMSDMArrayInt64, com.latencybusters.lbm.sdm.LBMSDMArrayInt8, com.latencybusters.lbm.sdm.LBMSDMArrayUint8, com.latencybusters.lbm.sdm.LBMSDMArrayBool, com.latencybusters.lbm.sdm.LBMSDMArrayUint32, and com.latencybusters.lbm.sdm.LBMSDMArrayUint16.
|
virtualinherited |
Compare the base type of the field to this field.
f | A field to compare |
|
virtualinherited |
Compare the type of the field to this field.
f | A field to compare |
|
virtual |
Set the raw unsigned 64 bit integer from an LBMSDMRawUint64 object.
LBMSDMException when an unexpected error occurs within LBMSDM
v | The LBMSDMRawUint64 value to be set |
Reimplemented in com.latencybusters.lbm.sdm.LBMSDMArrayUint64.
References com.latencybusters.lbm.sdm.LBMSDMRawUint64.Clone().
|
virtual |
Set the raw unsigned 64 bit integer from a BigInteger object.
LBMSDMException when an unexpected error occurs within LBMSDM
v | The BigInteger value to be set |
|
virtualinherited |
This is overridden by array classes.
f | The array field to be modified |
arrayidx | The array index of the field to be set |
Reimplemented in com.latencybusters.lbm.sdm.LBMSDMArrayMessage, com.latencybusters.lbm.sdm.LBMSDMArrayUnicode, com.latencybusters.lbm.sdm.LBMSDMArrayDecimal, com.latencybusters.lbm.sdm.LBMSDMArrayUint64, com.latencybusters.lbm.sdm.LBMSDMArrayBlob, com.latencybusters.lbm.sdm.LBMSDMArrayString, com.latencybusters.lbm.sdm.LBMSDMArrayDouble, com.latencybusters.lbm.sdm.LBMSDMArrayFloat, com.latencybusters.lbm.sdm.LBMSDMArrayInt16, com.latencybusters.lbm.sdm.LBMSDMArrayInt32, com.latencybusters.lbm.sdm.LBMSDMArrayInt64, com.latencybusters.lbm.sdm.LBMSDMArrayInt8, com.latencybusters.lbm.sdm.LBMSDMArrayTimestamp, com.latencybusters.lbm.sdm.LBMSDMArrayUint32, com.latencybusters.lbm.sdm.LBMSDMArrayUint8, com.latencybusters.lbm.sdm.LBMSDMArrayUint16, and com.latencybusters.lbm.sdm.LBMSDMArrayBool.
Referenced by com.latencybusters.lbm.sdm.LBMSDMFields.set().
|
virtualinherited |
Set the debug level for processing this SDM message. Currently all debugs go to standard out.
level | Debug level to set |
|
virtualinherited |
Set the name of this field. A copy of the name will be made.
new_name | The name this field shall use. |
|
virtual |
Get a string useful for debugging.
Reimplemented from com.latencybusters.lbm.sdm.LBMSDMField.
References com.latencybusters.lbm.sdm.LBMSDMRawUint64.format().
override System.String com.latencybusters.lbm.sdm.LBMSDMFieldUint64.ToString | ( | ) |
Get the string form of the unsigned 64 bit integer.
|
virtualinherited |
Get the length of the type field in raw form. This is only needed by LBMSDMessage to format a raw message.
References com.latencybusters.lbm.sdm.LBMSDMFieldUint16.fixed_size().
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.data().
|
getinherited |
Get a string representing this field type.
Values: A string representing this field type