org.openaltimeter
Class TypeConverter
java.lang.Object
org.openaltimeter.TypeConverter
public class TypeConverter
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeConverter
public TypeConverter()
bytesToSignedInt
public static int bytesToSignedInt(byte b0,
byte b1,
byte b2,
byte b3)
bytesToSignedShort
public static short bytesToSignedShort(byte b0,
byte b1)
bytesToFloat
public static float bytesToFloat(byte b0,
byte b1,
byte b2,
byte b3)
byteToUnsignedByte
public static int byteToUnsignedByte(byte b)
unsignedShortToBytes
public static byte[] unsignedShortToBytes(int i)
floatToBytes
public static byte[] floatToBytes(float f)