UM .NET API
6.16.1
|
Used to serialize a type into an array of bytes. More...
Public Member Functions | |
virtual int | writeBoolean (byte[] ba, int pos, bool b) |
Writes the boolean as 1 byte into the byte array at position. More... | |
virtual int | writeByte (byte[] byteArr, int pos, sbyte b) |
Writes the byte as 1 byte into the byte array at position. More... | |
virtual int | writeUByte (byte[] ba, int pos, byte b) |
Writes the unsigned byte (short) as 1 byte into the byte array at position. More... | |
virtual int | writeShort (byte[] ba, int pos, short s) |
| |
virtual int | writeUShort (byte[] ba, int pos, ushort s) |
Writes the unsigned short (int) as 2 bytes into the byte array at position. More... | |
virtual int | writeInt (byte[] ba, int pos, int i) |
Writes the int as 4 bytes into the byte array at position. More... | |
virtual int | writeUInt (byte[] ba, int pos, uint i) |
Writes the unsigned int (long) as 4 bytes into the byte array at position. More... | |
virtual int | writeLong (byte[] ba, int pos, long l) |
Writes the long as 8 bytes into the byte array at position. More... | |
virtual int | writeULong (byte[] ba, int pos, ulong l) |
Writes the ulong as 8 bytes into the byte array at position. More... | |
virtual int | writeFloat (byte[] ba, int pos, float f) |
Writes the float as 4 bytes into the byte array at position. More... | |
virtual int | writeDouble (byte[] ba, int pos, double d) |
Writes the double as 8 bytes into the byte array at position. More... | |
virtual int | writeDecimal (byte[] ba, int pos, PDMDecimal dec) |
Writes the PDMDecimal as 9 bytes into the byte array at position. More... | |
virtual int | writeTimestamp (byte[] ba, int pos, PDMTimestamp ts) |
Writes the PDMTimestamp as 8 bytes into the byte array at position. More... | |
virtual int | writeString (byte[] ba, int pos, System.String s) |
Writes the non-null String into the byte array at position and appends a 0 byte after the String. More... | |
virtual int | writeUnicode (byte[] ba, int pos, System.String s, System.String charSet) |
Writes the non-null unicode String into the byte array at position and appends a 0 byte after the String. More... | |
virtual int | writeUnicode (byte[] ba, int pos, System.String s) |
Writes the non-null unicode String into the byte array as UTF-8 at position and appends a 0 byte after the String. More... | |
virtual int | writeByteArray (byte[] ba, int pos, byte[] sourceByteArray) |
Copies the source byte array into the byte array at position. More... | |
Used to serialize a type into an array of bytes.
|
virtual |
Writes the boolean as 1 byte into the byte array at position.
ba | the byte array |
pos | the starting position |
b | the bool to write |
Referenced by com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMDefinition.toBytes().
|
virtual |
Writes the byte as 1 byte into the byte array at position.
byteArr | the byte array |
pos | the starting position |
b | the sbyte to write |
Referenced by com.latencybusters.pdm.PDMField.setValue(), com.latencybusters.pdm.PDMMessageHeader.toBytes(), com.latencybusters.pdm.PDMSegmentHeader.toBytes(), and com.latencybusters.pdm.PDMDefinition.toBytes().
|
virtual |
Copies the source byte array into the byte array at position.
ba | the byte array |
pos | the starting position |
sourceByteArray | the source byte array |
Referenced by com.latencybusters.pdm.PDMMessage.getFields(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the PDMDecimal as 9 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
dec | the PDMDecimal to write |
References com.latencybusters.pdm.PDMDecimal.Exponent, and com.latencybusters.pdm.PDMDecimal.Mantissa.
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the double as 8 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
d | the double to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the float as 4 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
f | the float to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the int as 4 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
i | the int to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), com.latencybusters.pdm.PDMField.setValue(), com.latencybusters.pdm.PDMOffsetTable.toBytes(), com.latencybusters.pdm.PDMMessageHeader.toBytes(), com.latencybusters.pdm.PDMSegmentHeader.toBytes(), and com.latencybusters.pdm.PDMDefinition.toBytes().
|
virtual |
Writes the long as 8 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
l | the long to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
ba | the byte array |
pos | the starting position |
s | the short to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMSegmentHeader.toBytes().
|
virtual |
Writes the non-null String into the byte array at position and appends a 0 byte after the String.
ba | the byte array |
pos | the starting position |
s | the String to write |
Referenced by com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the PDMTimestamp as 8 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
ts | the PDMTimestamp to write |
References com.latencybusters.pdm.PDMTimestamp.Microseconds, and com.latencybusters.pdm.PDMTimestamp.Seconds.
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the unsigned byte (short) as 1 byte into the byte array at position.
ba | the byte array |
pos | the starting position |
b | the byte to write |
Referenced by com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the unsigned int (long) as 4 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
i | the uint to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), com.latencybusters.pdm.PDMField.setValue(), and com.latencybusters.pdm.PDMMessageHeader.toBytes().
|
virtual |
Writes the ulong as 8 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
l | the ulong to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the non-null unicode String into the byte array at position and appends a 0 byte after the String.
UnsupportedEncodingException
ba | the byte array |
pos | the starting position |
s | the Unicode String to write |
charSet | the character set |
Referenced by com.latencybusters.pdm.PDMField.setValue().
|
virtual |
Writes the non-null unicode String into the byte array as UTF-8 at position and appends a 0 byte after the String.
UnsupportedEncodingException
ba | the byte array |
pos | the starting position |
s | the Unicode String to write |
|
virtual |
Writes the unsigned short (int) as 2 bytes into the byte array at position.
ba | the byte array |
pos | the starting position |
s | the ushort to write |
Referenced by com.latencybusters.pdm.PDMField.isValueSet(), and com.latencybusters.pdm.PDMField.setValue().