An LBMSDMRawDecimal is a helper class to minimise the effort of formatting and parsing Decimals.
More...
|
|
| LBMSDMRawDecimal () |
| | Create a raw decimal object defaulting to 0e0.
|
| |
| | LBMSDMRawDecimal (long mant_upper, int e) |
| | Create a raw decimal providing the mantissa and exponent. More...
|
| |
| | LBMSDMRawDecimal (System.String s) |
| | Create a raw decimal from a string. More...
|
| |
| override System.String | ToString () |
| | Create a string representing a raw decimal. More...
|
| |
| virtual int | format (byte[] buf, int offset) |
| | Format into a byte buffer this field. More...
|
| |
| virtual int | parse (byte[] buf, int offset) |
| | Parse a byte buffer containing a raw decimal field (as received on a socket) The byte buffer must be in network order. More...
|
| |
| virtual new System.Object | Clone () |
| | Get a copy of a raw decimal. More...
|
| |
| virtual long | mantissa () |
| | Get the mantissa of the decimal number. More...
|
| |
| virtual int | exponent () |
| | Get the exponent of the decimal number. More...
|
| |
| virtual System.String | toDbgString () |
| | Get a debug string for this object. This is not expected to be called and exists for child classes. More...
|
| |
| 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...
|
| |
An LBMSDMRawDecimal is a helper class to minimise the effort of formatting and parsing Decimals.
| com.latencybusters.lbm.sdm.LBMSDMRawDecimal.LBMSDMRawDecimal |
( |
long |
mant_upper, |
|
|
int |
e |
|
) |
| |
Create a raw decimal providing the mantissa and exponent.
- Parameters
-
| mant_upper | The mantissa |
| e | The exponent |
| com.latencybusters.lbm.sdm.LBMSDMRawDecimal.LBMSDMRawDecimal |
( |
System.String |
s | ) |
|
Create a raw decimal from a string.
- Parameters
-
| s | The string formatted "MMMeEE" or "mmmEee" |
| virtual new System.Object com.latencybusters.lbm.sdm.LBMSDMRawDecimal.Clone |
( |
| ) |
|
|
virtual |
| virtual int com.latencybusters.lbm.sdm.LBMSDMRawDecimal.exponent |
( |
| ) |
|
|
virtual |
| virtual int com.latencybusters.lbm.sdm.LBMSDMRawDecimal.format |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
| virtual void com.latencybusters.lbm.sdm.LBMSDM.log |
( |
System.String |
s | ) |
|
|
virtualinherited |
Log an event. If debug level is set greater than 0, output to stderr.
- Parameters
-
| s | String containing the event to log |
| virtual long com.latencybusters.lbm.sdm.LBMSDMRawDecimal.mantissa |
( |
| ) |
|
|
virtual |
Get the mantissa of the decimal number.
- Returns
- The mantissa of the decimal number
| virtual int com.latencybusters.lbm.sdm.LBMSDMRawDecimal.parse |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
| virtual void com.latencybusters.lbm.sdm.LBMSDM.set_debug_level |
( |
int |
level | ) |
|
|
virtualinherited |
Set the debug level for processing this SDM message. Currently all debugs go to standard out.
- Parameters
-
| virtual System.String com.latencybusters.lbm.sdm.LBMSDMRaw.toDbgString |
( |
| ) |
|
|
virtualinherited |
| override System.String com.latencybusters.lbm.sdm.LBMSDMRawDecimal.ToString |
( |
| ) |
|
Create a string representing a raw decimal.
- Returns
- A string in the format "MMMeEE"
The documentation for this class was generated from the following file: