BioRadio SDK - Java Android  1.1
com.tangible.BitConverter Class Reference

Static Public Member Functions

static byte [] getBytes (short v)
 
static byte [] getBytes (int v)
 
static byte [] getBytes (long v)
 
static byte [] getBytes (float v)
 
static byte [] getBytes (double v)
 
static byte [] getBytes (String v)
 
static String toString (byte[] data, int offset)
 
static String toString (byte[] data)
 
static float toFloat (byte[] data, int offset)
 
static double toDouble (byte[] data, int offset)
 
static short toInt16 (byte[] data, int offset)
 
static int toInt32 (byte[] data, int offset)
 
static long toInt64 (byte[] data, int offset)
 
static byte [] asByteArray (UUID uuid)
 
static UUID toUUID (byte[] byteArray)
 
static UUID toUUID (byte[] byteArray, int offset)
 
static void reverseArray (byte arr[], int index, int length)
 
static byte [] postPadArray (String label, int length, byte padChar)
 
static byte [] mergeArrays (byte[] baseArray, byte[] arrayToAdd)
 
static byte [] getLongToIntBytes (long longVal)
 
static byte [] getIntToShortBytes (int intVal)
 
static boolean arraysAreEqual (byte[] array1, byte[] array2)
 

Detailed Description

Author
Yunfei Zuo

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