|
UM .NET API
6.17
|
Used to deserialize bytes into the appropriate type. More...
Public Member Functions | |
| virtual void | setByteSwap (byte[] ba, int pos, uint magic) |
| Sets the flag on whether to swap bytes by comparing the magic number read in from the ba at the specified pos to the one passed in. More... | |
| virtual bool | isByteSwap () |
| Gets whether the byteSwap flag is set. More... | |
| virtual bool | readBoolean (byte[] ba, int pos) |
| This method will use one bytes from the given byte array starting at position to create a boolean. More... | |
| virtual sbyte | readByte (byte[] ba, int pos) |
| This method will use one bytes from the given byte array starting at position to create a byte. More... | |
| virtual byte | readUByte (byte[] ba, int pos) |
| This method will use one bytes from the given byte array starting at position to create an unsigned byte (stored in a short). More... | |
| virtual short | readShort (byte[] ba, int pos, bool byteSwap) |
| This method will use two bytes from the given byte array starting at position to create a short. More... | |
| virtual short | readShort (byte[] ba, int pos) |
| This method will use two bytes from the given byte array starting at position to create a short. More... | |
| virtual ushort | readUShort (byte[] ba, int pos, bool byteSwap) |
| This method will use two bytes from the given byte array starting at position to create an unsigned short (stored as an int). More... | |
| virtual ushort | readUShort (byte[] ba, int pos) |
| This method will use two bytes from the given byte array starting at position to create an unsigned short (stored as an int). More... | |
| virtual int | readInt (byte[] ba, int pos, bool byteSwap) |
| This method will use four bytes from the given byte array starting at position to create an int. More... | |
| virtual int | readInt (byte[] ba, int pos) |
| This method will use four bytes from the given byte array starting at position to create an int. More... | |
| virtual uint | readUInt (byte[] ba, int pos, bool byteSwap) |
| This method will use four bytes from the given byte array starting at position to create an unsigned int (stored as a long). More... | |
| virtual uint | readUInt (byte[] ba, int pos) |
| This method will use four bytes from the given byte array starting at position to create an unsigned int (stored as a long). More... | |
| virtual long | readLong (byte[] ba, int pos, bool byteSwap) |
| This method will use eight bytes from the given byte array starting at position to create a long. More... | |
| virtual long | readLong (byte[] ba, int pos) |
| This method will use eight bytes from the given byte array starting at position to create a long. More... | |
| virtual ulong | readULong (byte[] ba, int pos, bool byteSwap) |
| This method will use eight bytes from the given byte array starting at position to create an unsigned long (stored in a BigInteger). More... | |
| virtual ulong | readULong (byte[] ba, int pos) |
| This method will use eight bytes from the given byte array starting at position to create an unsigned long (stored in a BigInteger). More... | |
| virtual float | readFloat (byte[] ba, int pos, bool byteSwap) |
| This method will use four bytes from the given byte array starting at position to create a float. More... | |
| virtual float | readFloat (byte[] ba, int pos) |
| This method will use four bytes from the given byte array starting at position to create a float. More... | |
| virtual double | readDouble (byte[] ba, int pos, bool byteSwap) |
| This method will use eight bytes from the given byte array starting at position to create a double. More... | |
| virtual double | readDouble (byte[] ba, int pos) |
| This method will use eight bytes from the given byte array starting at position to create a double. More... | |
| virtual PDMDecimal | readDecimal (byte[] ba, int pos, bool byteSwap) |
| This method will use nine bytes from the given byte array starting at position to create a PDMDecimal. More... | |
| virtual PDMDecimal | readDecimal (byte[] ba, int pos) |
| This method will use eight bytes from the given byte array starting at position to create a PDMDecimal. More... | |
| virtual PDMTimestamp | readTimestamp (byte[] ba, int pos, bool byteSwap) |
| This method will use eight bytes from the given byte array starting at position to create a PDMTimestamp. More... | |
| virtual PDMTimestamp | readTimestamp (byte[] ba, int pos) |
| This method will use eight bytes from the given byte array starting at position to create a PDMTimestamp. More... | |
| virtual System.String | readString (byte[] ba, int pos, int len) |
| This method will read the specified len at position pos from the byte array and create a String expecting the String to end with a byte 0. More... | |
| virtual System.String | readUnicode (byte[] ba, int pos, int len, System.String charSet) |
| This method will read the specified len at position pos from the byte array and create a unicode String expecting the String to end with a byte 0. More... | |
| virtual System.String | readUnicode (byte[] ba, int pos, int len) |
| This method will read the specified len at position pos from the byte array and create a UTF-8 unicode String expecting the String to end with a byte 0. More... | |
| virtual void | readByteArray (byte[] ba, int pos, byte[] destByteArray) |
| Copies bytes from the source byte array (ba) into the destination byte array. More... | |
| virtual void | readByteArray (byte[] ba, int pos, byte[] destByteArray, int copyLen) |
| Copies bytes from the source byte array (ba) into the destination byte array. More... | |
| virtual byte[] | readByteArray (byte[] ba, int pos, int length) |
| Creates a new byte array from the source byte array (ba) at position for the given length. More... | |
Used to deserialize bytes into the appropriate type.
|
virtual |
Gets whether the byteSwap flag is set.
Referenced by com.latencybusters.pdm.PDMMessage.getFields().
|
virtual |
This method will use one bytes from the given byte array starting at position to create a boolean.
| ba | the byte array |
| pos | the position to start reading |
Referenced by com.latencybusters.pdm.PDMField.getBooleanArrayValue(), com.latencybusters.pdm.PDMField.getBooleanValue(), com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMDefinition.parse().
|
virtual |
This method will use one bytes from the given byte array starting at position to create a byte.
| ba | the byte array |
| pos | the position to start reading |
Referenced by com.latencybusters.pdm.PDMField.getInt8ArrayValue(), com.latencybusters.pdm.PDMField.getInt8Value(), com.latencybusters.pdm.PDMField.isValueSet(), com.latencybusters.pdm.PDMMessageHeader.parse(), com.latencybusters.pdm.PDMSegmentHeader.parse(), and com.latencybusters.pdm.PDMDefinition.parse().
|
virtual |
Copies bytes from the source byte array (ba) into the destination byte array.
| ba | the byte array |
| pos | the position to start reading |
| destByteArray | the destination byte array |
Referenced by com.latencybusters.pdm.PDMField.getBlobArrayValue(), com.latencybusters.pdm.PDMField.getBlobValue(), com.latencybusters.pdm.PDMField.getMessageArrayValue(), com.latencybusters.pdm.PDMField.getMessageValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
Copies bytes from the source byte array (ba) into the destination byte array.
| ba | the byte array |
| pos | the position to start reading |
| destByteArray | the destination byte array |
| copyLen | the number of bytes to copy |
|
virtual |
Creates a new byte array from the source byte array (ba) at position for the given length.
| ba | the byte array |
| pos | the position to start reading |
| length | the length in bytes to copy |
|
virtual |
This method will use nine bytes from the given byte array starting at position to create a PDMDecimal.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getDecimalArrayValue(), com.latencybusters.pdm.PDMField.getDecimalValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a PDMDecimal.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a double.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getDoubleArrayValue(), com.latencybusters.pdm.PDMField.getDoubleValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a double.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use four bytes from the given byte array starting at position to create a float.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getFloatArrayValue(), com.latencybusters.pdm.PDMField.getFloatValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use four bytes from the given byte array starting at position to create a float.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use four bytes from the given byte array starting at position to create an int.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getBlobArrayValue(), com.latencybusters.pdm.PDMMessage.getFields(), com.latencybusters.pdm.PDMField.getInt32ArrayValue(), com.latencybusters.pdm.PDMField.getInt32Value(), com.latencybusters.pdm.PDMField.getMessageArrayValue(), com.latencybusters.pdm.PDMField.getStringArrayValue(), com.latencybusters.pdm.PDMField.isValueSet(), com.latencybusters.pdm.PDMOffsetTable.parse(), com.latencybusters.pdm.PDMMessageHeader.parse(), com.latencybusters.pdm.PDMSegmentHeader.parse(), and com.latencybusters.pdm.PDMDefinition.parse().
|
virtual |
This method will use four bytes from the given byte array starting at position to create an int.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a long.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getInt64ArrayValue(), com.latencybusters.pdm.PDMField.getInt64Value(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a long.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use two bytes from the given byte array starting at position to create a short.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getInt16ArrayValue(), com.latencybusters.pdm.PDMField.getInt16Value(), com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMSegmentHeader.parse().
|
virtual |
This method will use two bytes from the given byte array starting at position to create a short.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will read the specified len at position pos from the byte array and create a String expecting the String to end with a byte 0.
| ba | the byte array |
| pos | the position to start reading |
| len | the length of the string in bytes |
Referenced by com.latencybusters.pdm.PDMField.getStringArrayValue(), com.latencybusters.pdm.PDMField.getStringValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a PDMTimestamp.
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getTimestampArrayValue(), com.latencybusters.pdm.PDMField.getTimestampValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use eight bytes from the given byte array starting at position to create a PDMTimestamp.
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use one bytes from the given byte array starting at position to create an unsigned byte (stored in a short).
| ba | the byte array |
| pos | the position to start reading |
Referenced by com.latencybusters.pdm.PDMField.getUInt8ArrayValue(), com.latencybusters.pdm.PDMField.getUInt8Value(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use four bytes from the given byte array starting at position to create an unsigned int (stored as a long).
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getUInt32ArrayValue(), com.latencybusters.pdm.PDMField.getUInt32Value(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use four bytes from the given byte array starting at position to create an unsigned int (stored as a long).
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will use eight bytes from the given byte array starting at position to create an unsigned long (stored in a BigInteger).
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getUInt64ArrayValue(), com.latencybusters.pdm.PDMField.getUInt64Value(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use eight bytes from the given byte array starting at position to create an unsigned long (stored in a BigInteger).
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
This method will read the specified len at position pos from the byte array and create a unicode String expecting the String to end with a byte 0.
UnsupportedEncodingException
| ba | the byte array |
| pos | the position to start reading |
| len | the length of the string in bytes |
| charSet | the character set |
Referenced by com.latencybusters.pdm.PDMField.getStringArrayValue(), com.latencybusters.pdm.PDMField.getStringValue(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will read the specified len at position pos from the byte array and create a UTF-8 unicode String expecting the String to end with a byte 0.
UnsupportedEncodingException
| ba | the byte array |
| pos | the position to start reading |
| len | the length of the string in bytes |
|
virtual |
This method will use two bytes from the given byte array starting at position to create an unsigned short (stored as an int).
| ba | the byte array |
| pos | the position to start reading |
| byteSwap | whether or not the bytes need to be swapped |
Referenced by com.latencybusters.pdm.PDMField.getUInt16ArrayValue(), com.latencybusters.pdm.PDMField.getUInt16Value(), and com.latencybusters.pdm.PDMField.isValueSet().
|
virtual |
This method will use two bytes from the given byte array starting at position to create an unsigned short (stored as an int).
| ba | the byte array |
| pos | the position to start reading |
|
virtual |
Sets the flag on whether to swap bytes by comparing the magic number read in from the ba at the specified pos to the one passed in.
| ba | the byte array |
| pos | the position to start reading |
| magic | the magic number to compare against |
Referenced by com.latencybusters.pdm.PDMMessageHeader.parse().