UM Java API  6.16.1
com.latencybusters.lbm.sdm.LBMSDMRawUint32 Class Reference
Inheritance diagram for com.latencybusters.lbm.sdm.LBMSDMRawUint32:
com.latencybusters.lbm.sdm.LBMSDMRaw com.latencybusters.lbm.sdm.LBMSDM

Public Member Functions

void set (long v) throws LBMSDMException
 
 LBMSDMRawUint32 () throws LBMSDMException
 
 LBMSDMRawUint32 (long v) throws LBMSDMException
 
int format (byte[] buf, int offset) throws LBMSDMException
 
String toString ()
 
int parse (byte[] buf, int offset) throws LBMSDMException
 
long toLong ()
 
LBMSDMRawUint32 clone () throws CloneNotSupportedException
 
String toDbgString ()
 
void set_debug_level (int level)
 
void log (String s)
 

Static Public Member Functions

static int format (byte[] buf, int offset, long v) throws LBMSDMException
 
static long parse_s (byte[] buf, int offset) throws LBMSDMException
 

Static Public Attributes

static final int length = 4
 
static final int DEBUG_BASIC = 1
 
static final int DEBUG_VERBOSE_PARSING = 2
 

Protected Attributes

int debug_level = 0
 

Detailed Description

An LBMSDMRawUint32 is a helper class to minimise the effort of formatting and parsing unsigned 32 bit integers

Constructor & Destructor Documentation

com.latencybusters.lbm.sdm.LBMSDMRawUint32.LBMSDMRawUint32 ( ) throws LBMSDMException

Create a raw uint32 field, defaulting to 0

Referenced by com.latencybusters.lbm.sdm.LBMSDMRawUint32.clone().

com.latencybusters.lbm.sdm.LBMSDMRawUint32.LBMSDMRawUint32 ( long  v) throws LBMSDMException

Set a raw uint16 field providing the value as a long

Parameters
vThe long to seed this raw object
Exceptions
LBMSDMUnsignedExceptionif an unsigned value is passed in

Member Function Documentation

LBMSDMRawUint32 com.latencybusters.lbm.sdm.LBMSDMRawUint32.clone ( ) throws CloneNotSupportedException
static int com.latencybusters.lbm.sdm.LBMSDMRawUint32.format ( byte []  buf,
int  offset,
long  v 
) throws LBMSDMException
static

Format a uint32 value into a byte buffer

Parameters
bufThe buffer to contain the formatted value
offsetThe offset in to the buffer to start formatting
vThe value of the uint32 to be formatted as a long
Returns
The offset after formatting the long

References com.latencybusters.lbm.sdm.LBMSDMRawUint32.length.

Referenced by com.latencybusters.lbm.sdm.LBMSDMessage.data(), com.latencybusters.lbm.sdm.LBMSDMRawFloat.format(), com.latencybusters.lbm.sdm.LBMSDMRawUint32.format(), com.latencybusters.lbm.sdm.LBMSDMFieldString.format(), com.latencybusters.lbm.sdm.LBMSDMFieldUnicode.format(), com.latencybusters.lbm.sdm.LBMSDMFieldBlob.format(), and com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.format().

int com.latencybusters.lbm.sdm.LBMSDMRawUint32.format ( byte []  buf,
int  offset 
) throws LBMSDMException

Format the raw uint32 value into a byte buffer

Parameters
bufThe buffer to contain the formatted value
offsetThe offset in to the buffer to start formatting
Returns
The offset after formatting this object

References com.latencybusters.lbm.sdm.LBMSDMRawUint32.format(), and com.latencybusters.lbm.sdm.LBMSDMRawUint32.length.

int com.latencybusters.lbm.sdm.LBMSDMRawUint32.parse ( byte []  buf,
int  offset 
) throws LBMSDMException

Parse the raw uint32 value from a byte buffer

Parameters
bufThe buffer that contains the formatted value
offsetThe offset in to the buffer to start parsing
Returns
the new offset after parsing the field

References com.latencybusters.lbm.sdm.LBMSDMRawUint32.length, and com.latencybusters.lbm.sdm.LBMSDMRawUint32.toLong().

Referenced by com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.parse().

static long com.latencybusters.lbm.sdm.LBMSDMRawUint32.parse_s ( byte []  buf,
int  offset 
) throws LBMSDMException
static

Parse the raw uint32 value from a byte buffer

Parameters
bufThe buffer that contains the formatted value
offsetThe offset in to the buffer to start parsing
Returns
the new offset after parsing the field

References com.latencybusters.lbm.sdm.LBMSDMRawUint32.toLong().

Referenced by com.latencybusters.lbm.sdm.LBMSDMRawFloat.parse_s().

void com.latencybusters.lbm.sdm.LBMSDMRawUint32.set ( long  v) throws LBMSDMException

Set a uint32 field providing the value as a long

Parameters
vThe long to seed this raw object
Exceptions
LBMSDMUnsignedExceptionif an unsigned value is passed in

Referenced by com.latencybusters.lbm.sdm.LBMSDMRawTimestamp.set().

void com.latencybusters.lbm.sdm.LBMSDM.set_debug_level ( int  level)
inherited

Set the debug level for processing this SDM message. Currently all debugs go to standard out.

String com.latencybusters.lbm.sdm.LBMSDMRaw.toDbgString ( )
inherited

Get a debug string for this object. This is not expected to be called and exists for child classes.

Returns
returns null - derived classes override with their value

Referenced by com.latencybusters.lbm.sdm.LBMSDMBadRawObjectException.LBMSDMBadRawObjectException().

long com.latencybusters.lbm.sdm.LBMSDMRawUint32.toLong ( )

Get the long representation of the uint32

Returns
A long with the value of the object

Referenced by com.latencybusters.lbm.sdm.LBMSDMRawUint32.parse(), com.latencybusters.lbm.sdm.LBMSDMRawUint32.parse_s(), and com.latencybusters.lbm.sdm.LBMSDMRawUint32.toString().

String com.latencybusters.lbm.sdm.LBMSDMRawUint32.toString ( )

Get a string version of an uint16

Returns
A string representation of the uint16

References com.latencybusters.lbm.sdm.LBMSDMRawUint32.toLong().

Member Data Documentation

final int com.latencybusters.lbm.sdm.LBMSDM.DEBUG_BASIC = 1
staticinherited

Debug flag for basic debug output

int com.latencybusters.lbm.sdm.LBMSDM.debug_level = 0
protectedinherited
final int com.latencybusters.lbm.sdm.LBMSDM.DEBUG_VERBOSE_PARSING = 2
staticinherited

Debug flag for verbose message parsing output


The documentation for this class was generated from the following file: