|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.junrar.io.Raw
public class Raw
Read / write numbers to a byte[] regarding the endianness of the array
| Constructor Summary | |
|---|---|
Raw()
|
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Raw()
| Method Detail |
|---|
public static final short readShortBigEndian(byte[] array,
int pos)
array - the array to read frompos - the position
public static final int readIntBigEndian(byte[] array,
int pos)
array - the array to read frompos - the offset
public static final long readLongBigEndian(byte[] array,
int pos)
array - the array to read frompos - the offset
public static final short readShortLittleEndian(byte[] array,
int pos)
array - the array to read frompos - the offset
public static final int readIntLittleEndian(byte[] array,
int pos)
array - the array to read frompos - the offset
public static final long readIntLittleEndianAsLong(byte[] array,
int pos)
array - pos -
public static final long readLongLittleEndian(byte[] array,
int pos)
array - the array to read frompos - the offset
public static final void writeShortBigEndian(byte[] array,
int pos,
short value)
array - the arraypos - the offsetvalue - the value to write
public static final void writeIntBigEndian(byte[] array,
int pos,
int value)
array - the arraypos - the offsetvalue - the value to write
public static final void writeLongBigEndian(byte[] array,
int pos,
long value)
array - the arraypos - the offsetvalue - the value to write
public static final void writeShortLittleEndian(byte[] array,
int pos,
short value)
array - the arraypos - the offsetvalue - the value to write
public static final void incShortLittleEndian(byte[] array,
int pos,
int dv)
public static final void writeIntLittleEndian(byte[] array,
int pos,
int value)
array - the arraypos - the offsetvalue - the value to write
public static final void writeLongLittleEndian(byte[] array,
int pos,
long value)
array - the arraypos - the offsetvalue - the value to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||