An LBMSDMRawDouble is a helper class to minimise the effort of formatting and parsing Doubles.
More...
|
virtual void | set (double v) |
| Set the raw double from a double field. More...
|
|
| LBMSDMRawDouble () |
| Create a raw double object, setting the value to 0.
|
|
| LBMSDMRawDouble (double v) |
| Create a raw double object providing the value. More...
|
|
virtual int | format (byte[] buf, int offset) |
| Format the raw double value into a byte buffer. More...
|
|
override System.String | ToString () |
| Get a string representing the raw double value. More...
|
|
virtual int | parse (byte[] buf, int offset) |
| Parse the raw double value from a byte buffer The value is stored in the object. More...
|
|
virtual double | toDouble () |
| Get the double value of this raw double. 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...
|
|
System.Object | Clone () |
| Get a copy of this object. More...
|
|
|
static int | format (byte[] buf, int offset, double v) |
| Format a double value into a byte buffer. More...
|
|
static double | parse_s (byte[] buf, int offset) |
| Parse the raw double value from a byte buffer. More...
|
|
|
static int | length = 8 |
| The length of a raw double.
|
|
An LBMSDMRawDouble is a helper class to minimise the effort of formatting and parsing Doubles.
com.latencybusters.lbm.sdm.LBMSDMRawDouble.LBMSDMRawDouble |
( |
double |
v | ) |
|
Create a raw double object providing the value.
- Parameters
-
v | The value of the raw double |
System.Object com.latencybusters.lbm.sdm.LBMSDM.Clone |
( |
| ) |
|
|
inherited |
Get a copy of this object.
- Returns
- A new object with a copy
static int com.latencybusters.lbm.sdm.LBMSDMRawDouble.format |
( |
byte[] |
buf, |
|
|
int |
offset, |
|
|
double |
v |
|
) |
| |
|
static |
Format a double value into a byte buffer.
- Parameters
-
buf | The buffer to contain the formatted value |
offset | The offset in to the buffer to start formatting |
v | The value of the double to be formatted |
- Returns
- The offset after formatting the double
Referenced by com.latencybusters.lbm.sdm.LBMSDMFieldDouble.toDbgString().
virtual int com.latencybusters.lbm.sdm.LBMSDMRawDouble.format |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
Format the raw double value into a byte buffer.
- Parameters
-
buf | The buffer to contain the formatted value |
offset | The offset in to the buffer to start formatting |
- Returns
- The offset after formatting this object
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 int com.latencybusters.lbm.sdm.LBMSDMRawDouble.parse |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
Parse the raw double value from a byte buffer The value is stored in the object.
- Parameters
-
buf | The buffer that contains the formatted value |
offset | The offset in to the buffer to start parsing |
- Returns
- the new offset after parsing the field
static double com.latencybusters.lbm.sdm.LBMSDMRawDouble.parse_s |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
static |
virtual void com.latencybusters.lbm.sdm.LBMSDMRawDouble.set |
( |
double |
v | ) |
|
|
virtual |
Set the raw double from a double field.
- Parameters
-
v | The value the raw double needs to be set to |
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 |
virtual double com.latencybusters.lbm.sdm.LBMSDMRawDouble.toDouble |
( |
| ) |
|
|
virtual |
Get the double value of this raw double.
- Returns
- The double value of this object
override System.String com.latencybusters.lbm.sdm.LBMSDMRawDouble.ToString |
( |
| ) |
|
Get a string representing the raw double value.
- Returns
- A string representing the raw double value
The documentation for this class was generated from the following file: