|
Mobios v0.91 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmobios.mckoi.util.ByteArrayUtil
public class ByteArrayUtil
Static utilities for byte arrays.
| Constructor Summary | |
|---|---|
ByteArrayUtil()
|
|
| Method Summary | |
|---|---|
static char |
getChar(byte[] arr,
int offset)
Returns the chart at the given offset of the byte array. |
static int |
getInt(byte[] arr,
int offset)
Returns the int at the given offset of the byte array. |
static long |
getLong(byte[] arr,
int offset)
Returns the long at the given offset of the byte array. |
static short |
getShort(byte[] arr,
int offset)
Returns the short at the given offset of the byte array. |
static void |
setChar(char value,
byte[] arr,
int offset)
Sets the short at the given offset of the byte array. |
static void |
setInt(int value,
byte[] arr,
int offset)
Sets the int at the given offset of the byte array. |
static void |
setLong(long value,
byte[] arr,
int offset)
Sets the long at the given offset of the byte array. |
static void |
setShort(short value,
byte[] arr,
int offset)
Sets the short at the given offset of the byte array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayUtil()
| Method Detail |
|---|
public static final char getChar(byte[] arr,
int offset)
public static final void setChar(char value,
byte[] arr,
int offset)
public static final short getShort(byte[] arr,
int offset)
public static final void setShort(short value,
byte[] arr,
int offset)
public static final int getInt(byte[] arr,
int offset)
public static final void setInt(int value,
byte[] arr,
int offset)
public static final long getLong(byte[] arr,
int offset)
public static final void setLong(long value,
byte[] arr,
int offset)
|
Mobios v0.91 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||