|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teraspaces.qwframework.QWBitConverter
public final class QWBitConverter
Helper functions used by QWFIX internally.
| Constructor Summary | |
|---|---|
QWBitConverter()
|
|
| Method Summary | |
|---|---|
static void |
copyBytes(int value,
byte[] buffer,
int startIndex)
Converts a value into byte stream. |
static void |
copyBytes(long value,
byte[] buffer,
int startIndex)
Converts a value into byte stream. |
static void |
copyBytes(short valueShort,
byte[] buffer,
int startIndex)
Converts a value into byte stream. |
static int |
toInt(byte[] buffer,
int startIndex)
Converts a value into byte stream. |
static long |
toLong(byte[] buffer,
int startIndex)
Converts a value into byte stream. |
static short |
toShort(byte[] buffer,
int startIndex)
Converts a byte stream into value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QWBitConverter()
| Method Detail |
|---|
public static void copyBytes(short valueShort,
byte[] buffer,
int startIndex)
Little-endian(as in native x86) is used. Note Java uses big-endian internally.
valueShort - the short valuebuffer - the bufferstartIndex - the start index
public static void copyBytes(int value,
byte[] buffer,
int startIndex)
Little-endian(as in native x86) is used. Note Java uses big-endian internally.
value - the valuebuffer - the bufferstartIndex - the start index
public static void copyBytes(long value,
byte[] buffer,
int startIndex)
Little-endian(as in native x86) is used. Note Java uses big-endian internally.
value - the valuebuffer - the bufferstartIndex - the start index
public static short toShort(byte[] buffer,
int startIndex)
Little-endian(as in native x86) is used. Note Java uses big-endian internally.
buffer - the bufferstartIndex - the start index
public static int toInt(byte[] buffer,
int startIndex)
Little-endian(as in native x86) is used. Note Java uses big-endian internally.
buffer - the bufferstartIndex - the start index
public static long toLong(byte[] buffer,
int startIndex)
Little-endian(as in native x86) is used. Note Java uses big-endian internally.
buffer - the bufferstartIndex - the start index
|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||