rasmus.util
Class ByteConversion
java.lang.Object
rasmus.util.ByteConversion
public final class ByteConversion
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteConversion
public ByteConversion()
guidToString
public static final java.lang.String guidToString(byte[] buffer)
byteToInt
public static final int byteToInt(byte buffer)
byteToInt
public static final int byteToInt(byte[] buffer)
charToString
public static final java.lang.String charToString(byte[] buffer)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
dwordToLong
public static final long dwordToLong(byte[] buffer)
intToByte
public static final byte[] intToByte(int buffer)
intToShort
public static final byte[] intToShort(int buffer)
intToWord
public static final byte[] intToWord(int buffer)
longToDWord
public static final byte[] longToDWord(long buffer)
shortToInt
public static final int shortToInt(byte[] buffer)
stringToChar
public static final byte[] stringToChar(java.lang.String buffer,
int size)
wordToInt_LE
public static final int wordToInt_LE(byte[] buffer)
wordToInt_BE
public static final int wordToInt_BE(byte[] buffer)