An LBMSDMRawFloat is a helper class to minimise the effort of formatting and parsing Floats.
More...
|
| virtual void | set (float v) |
| | Set the raw float from a float field. More...
|
| |
|
| LBMSDMRawFloat () |
| | Create a raw float object, setting the value to 0.
|
| |
| | LBMSDMRawFloat (float v) |
| | Create a raw float object providing the value. More...
|
| |
| virtual int | format (byte[] buf, int offset) |
| | Format the raw float value into a byte buffer. More...
|
| |
| override System.String | ToString () |
| | Get a string representing the raw float value. More...
|
| |
| virtual int | parse (byte[] buf, int offset) |
| | Parse the raw float value from a byte buffer The value is stored in the object. More...
|
| |
| virtual float | toFloat () |
| | Get the float value of this raw float. 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, float v) |
| | Format a float value into a byte buffer. More...
|
| |
| static float | parse_s (byte[] buf, int offset) |
| | Parse the raw float value from a byte buffer. More...
|
| |
|
|
static int | length = 4 |
| | The length of a raw float.
|
| |
An LBMSDMRawFloat is a helper class to minimise the effort of formatting and parsing Floats.
| com.latencybusters.lbm.sdm.LBMSDMRawFloat.LBMSDMRawFloat |
( |
float |
v | ) |
|
Create a raw float object providing the value.
- Parameters
-
| v | The value of the raw float |
| 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.LBMSDMRawFloat.format |
( |
byte[] |
buf, |
|
|
int |
offset, |
|
|
float |
v |
|
) |
| |
|
static |
Format a float 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 float to be formatted |
- Returns
- The offset after formatting the float
Referenced by com.latencybusters.lbm.sdm.LBMSDMFieldFloat.toDbgString().
| virtual int com.latencybusters.lbm.sdm.LBMSDMRawFloat.format |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
Format the raw float 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.LBMSDMRawFloat.parse |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
virtual |
Parse the raw float 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 float com.latencybusters.lbm.sdm.LBMSDMRawFloat.parse_s |
( |
byte[] |
buf, |
|
|
int |
offset |
|
) |
| |
|
static |
| virtual void com.latencybusters.lbm.sdm.LBMSDMRawFloat.set |
( |
float |
v | ) |
|
|
virtual |
Set the raw float from a float field.
- Parameters
-
| v | The value the raw float 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 float com.latencybusters.lbm.sdm.LBMSDMRawFloat.toFloat |
( |
| ) |
|
|
virtual |
Get the float value of this raw float.
- Returns
- The float value of this object
| override System.String com.latencybusters.lbm.sdm.LBMSDMRawFloat.ToString |
( |
| ) |
|
Get a string representing the raw float value.
- Returns
- A string representing the raw float value
The documentation for this class was generated from the following file: