Class TrdpDecoder
java.lang.Object
com.trdp.util.TrdpDecoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidalign(int alignment) booleangetBool8()byte[]getBytes(int length) chargetChar8()shortgetInt16()intgetInt32()longgetInt64()bytegetInt8()floatdoublegetString(int length) intlonglongDecodes an unsigned 64-bit integer.intgetUInt8()chargetUtf16()intposition()intvoidrewind()voidskip(int bytes)
-
Constructor Details
-
TrdpDecoder
public TrdpDecoder(byte[] data)
-
-
Method Details
-
getBool8
public boolean getBool8() -
getChar8
public char getChar8() -
getUtf16
public char getUtf16() -
getInt8
public byte getInt8() -
getInt16
public short getInt16() -
getInt32
public int getInt32() -
getInt64
public long getInt64() -
getUInt8
public int getUInt8() -
getUInt16
public int getUInt16() -
getUInt32
public long getUInt32() -
getUInt64
public long getUInt64()Decodes an unsigned 64-bit integer. For values larger than Long.MAX_VALUE, the returned long will appear negative. Use Long.toUnsignedString() to obtain the decimal representation and Long.compareUnsigned() for comparisons. -
getReal32
public float getReal32() -
getReal64
public double getReal64() -
getTimeDate32
-
getTimeDate48
-
getTimeDate64
-
getString
-
getBytes
public byte[] getBytes(int length) -
skip
public void skip(int bytes) -
align
public void align(int alignment) -
position
public int position() -
remaining
public int remaining() -
rewind
public void rewind()
-