public class Raw extends Object
| Constructor and Description |
|---|
Raw() |
| Modifier and Type | Method and Description |
|---|---|
static void |
incShortLittleEndian(byte[] array,
int pos,
int dv)
Increment a short value at the specified position by the specified amount
(little endian).
|
static int |
readIntBigEndian(byte[] array,
int pos)
Read a int value from the byte array at the given position (Big Endian)
|
static int |
readIntLittleEndian(byte[] array,
int pos)
Read an int value from the byte array at the given position (little
Endian)
|
static long |
readIntLittleEndianAsLong(byte[] array,
int pos)
Read an long value(unsigned int) from the byte array at the given
position (little Endian)
|
static long |
readLongBigEndian(byte[] array,
int pos)
Read a long value from the byte array at the given position (Big Endian)
|
static long |
readLongLittleEndian(byte[] array,
int pos)
Read a long value from the byte array at the given position (little
Endian)
|
static short |
readShortBigEndian(byte[] array,
int pos)
Read a short value from the byte array at the given position (Big Endian)
|
static short |
readShortLittleEndian(byte[] array,
int pos)
Read a short value from the byte array at the given position (little
Endian)
|
static void |
writeIntBigEndian(byte[] array,
int pos,
int value)
Write an int value into the byte array at the given position (Big endian)
|
static void |
writeIntLittleEndian(byte[] array,
int pos,
int value)
Write an int value into the byte array at the given position (little
endian)
|
static void |
writeLongBigEndian(byte[] array,
int pos,
long value)
Write a long value into the byte array at the given position (Big endian)
|
static void |
writeLongLittleEndian(byte[] array,
int pos,
long value)
Write a long value into the byte array at the given position (little
endian)
|
static void |
writeShortBigEndian(byte[] array,
int pos,
short value)
Write a short value into the byte array at the given position (Big
endian)
|
static void |
writeShortLittleEndian(byte[] array,
int pos,
short value)
Write a short value into the byte array at the given position (little
endian)
|
public static short readShortBigEndian(byte[] array,
int pos)
array - the array to read frompos - the positionpublic static int readIntBigEndian(byte[] array,
int pos)
array - the array to read frompos - the offsetpublic static long readLongBigEndian(byte[] array,
int pos)
array - the array to read frompos - the offsetpublic static short readShortLittleEndian(byte[] array,
int pos)
array - the array to read frompos - the offsetpublic static int readIntLittleEndian(byte[] array,
int pos)
array - the array to read frompos - the offsetpublic static long readIntLittleEndianAsLong(byte[] array,
int pos)
array - the array to read frompos - the offsetpublic static long readLongLittleEndian(byte[] array,
int pos)
array - the array to read frompos - the offsetpublic static void writeShortBigEndian(byte[] array,
int pos,
short value)
array - the arraypos - the offsetvalue - the value to writepublic static void writeIntBigEndian(byte[] array,
int pos,
int value)
array - the arraypos - the offsetvalue - the value to writepublic static void writeLongBigEndian(byte[] array,
int pos,
long value)
array - the arraypos - the offsetvalue - the value to writepublic static void writeShortLittleEndian(byte[] array,
int pos,
short value)
array - the arraypos - the offsetvalue - the value to writepublic static void incShortLittleEndian(byte[] array,
int pos,
int dv)
array - the arraypos - the offsetdv - the amountpublic static void writeIntLittleEndian(byte[] array,
int pos,
int value)
array - the arraypos - the offsetvalue - the value to writepublic static void writeLongLittleEndian(byte[] array,
int pos,
long value)
array - the arraypos - the offsetvalue - the value to writeCopyright © 2017. All rights reserved.