| 
    UM Java API
    6.17
    
   | 
 
  
 Public Member Functions | |
| void | set (int v) throws LBMSDMException | 
| LBMSDMRawUint16 () throws LBMSDMException | |
| LBMSDMRawUint16 (int v) throws LBMSDMException | |
| int | format (byte[] buf, int offset) throws LBMSDMException | 
| String | toString () | 
| int | parse (byte[] buf, int offset) throws LBMSDMException | 
| int | toInt () | 
| String | toDbgString () | 
| void | set_debug_level (int level) | 
| void | log (String s) | 
Static Public Member Functions | |
| static int | format (byte[] buf, int offset, int v) throws LBMSDMException | 
Static Public Attributes | |
| static int | length = 2 | 
| static final int | DEBUG_BASIC = 1 | 
| static final int | DEBUG_VERBOSE_PARSING = 2 | 
Protected Attributes | |
| int | debug_level = 0 | 
An LBMSDMRawUint16 is a helper class to minimise the effort of formatting and parsing unsigned 16 bit integers
| com.latencybusters.lbm.sdm.LBMSDMRawUint16.LBMSDMRawUint16 | ( | ) | throws LBMSDMException | 
Create a raw uint16 field, defaulting to 0
| com.latencybusters.lbm.sdm.LBMSDMRawUint16.LBMSDMRawUint16 | ( | int | v | ) | throws LBMSDMException | 
Set a raw uint16 field providing the value as an int
| v | The int to seed this raw object | 
| LBMSDMUnsignedException | if an unsigned value is passed in | 
      
  | 
  static | 
Format a uint16 value into a byte buffer
| buf | The buffer to contain the formatted value | 
| offset | The offset in to the buffer to start formatting | 
| v | The value of the uint16 to be formatted as a long | 
References com.latencybusters.lbm.sdm.LBMSDMRawUint16.length.
Referenced by com.latencybusters.lbm.sdm.LBMSDMRawUint16.format(), and com.latencybusters.lbm.sdm.LBMSDMField.format_type().
| int com.latencybusters.lbm.sdm.LBMSDMRawUint16.format | ( | byte [] | buf, | 
| int | offset | ||
| ) | throws LBMSDMException | 
Format the raw uint16 value into a byte buffer
| buf | The buffer to contain the formatted value | 
| offset | The offset in to the buffer to start formatting | 
References com.latencybusters.lbm.sdm.LBMSDMRawUint16.format(), and com.latencybusters.lbm.sdm.LBMSDMRawUint16.length.
      
  | 
  inherited | 
Log an event. If debug level is set greater than 0, output to stderr
Referenced by com.latencybusters.lbm.sdm.LBMSDMFields.get_attr(), com.latencybusters.lbm.sdm.LBMSDMFields.LBMSDMFields(), com.latencybusters.lbm.sdm.LBMSDMFieldBlob.set(), com.latencybusters.lbm.sdm.LBMSDMFieldMessage.set(), com.latencybusters.lbm.sdm.LBMSDMFieldDecimal.set(), com.latencybusters.lbm.sdm.LBMSDMFieldTimestamp.set(), com.latencybusters.lbm.sdm.LBMSDMArrayDecimal.set(), and com.latencybusters.lbm.sdm.LBMSDMArrayUint64.set().
| int com.latencybusters.lbm.sdm.LBMSDMRawUint16.parse | ( | byte [] | buf, | 
| int | offset | ||
| ) | throws LBMSDMException | 
Parse the raw uint16 value from a byte buffer
| buf | The buffer that contains the formatted value | 
| offset | The offset in to the buffer to start parsing | 
References com.latencybusters.lbm.sdm.LBMSDMRawUint16.length, and com.latencybusters.lbm.sdm.LBMSDMRawUint16.toInt().
| void com.latencybusters.lbm.sdm.LBMSDMRawUint16.set | ( | int | v | ) | throws LBMSDMException | 
Set a uint16 field providing the value as an int
| v | The int this raw object is to use | 
| LBMSDMUnsignedException | if an unsigned value is passed in | 
      
  | 
  inherited | 
Set the debug level for processing this SDM message. Currently all debugs go to standard out.
      
  | 
  inherited | 
Get a debug string for this object. This is not expected to be called and exists for child classes.
Referenced by com.latencybusters.lbm.sdm.LBMSDMBadRawObjectException.LBMSDMBadRawObjectException().
| int com.latencybusters.lbm.sdm.LBMSDMRawUint16.toInt | ( | ) | 
Get the int representation of the uint16
Referenced by com.latencybusters.lbm.sdm.LBMSDMRawUint16.parse(), and com.latencybusters.lbm.sdm.LBMSDMRawUint16.toString().
| String com.latencybusters.lbm.sdm.LBMSDMRawUint16.toString | ( | ) | 
Get a string version of an uint16
References com.latencybusters.lbm.sdm.LBMSDMRawUint16.toInt().
      
  | 
  staticinherited | 
Debug flag for basic debug output
      
  | 
  protectedinherited | 
Debug mask for SDM implementation.
Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.data(), com.latencybusters.lbm.sdm.LBMSDMessage.parse(), com.latencybusters.lbm.sdm.LBMSDMFieldMessage.parse(), and com.latencybusters.lbm.sdm.LBMSDMArrayMessage.parse().
      
  | 
  staticinherited | 
Debug flag for verbose message parsing output
      
  | 
  static | 
The number of bytes needed to store a raw LBMSDMRawUint16
Referenced by com.latencybusters.lbm.sdm.LBMSDMRawUint16.format(), com.latencybusters.lbm.sdm.LBMSDMField.format_type(), and com.latencybusters.lbm.sdm.LBMSDMRawUint16.parse().