lava.array
Class BigEndianArray
java.lang.Object
|
+--lava.array.BigEndianArray
- public final class BigEndianArray
- extends java.lang.Object
Splits/concatenates primitive integer types using "big endian" byte ordering.
Details: BigEndianArray.split
functions disassemble arrays of wide primitive types into arrays of narrow primitive types. BigEndianArray.concat
functions assemble arrays of narrow primitive types into arrays of wide primitive types. All of the functions in this class use "big endian" byte ordering.
No bits are inserted or discarded during concat
or split
operations. For example, splitting an array of 2 long
s requires an array of 8 short
s, and vice versa for combining.
- Since:
- a long time ago
- Version:
- 2000.10.05
- Author:
- Sharky
- See Also:
LittleEndianArray
Method Summary |
static char[] |
concat(byte[] src,
int from,
char[] dest,
int to,
int amount)
|
static int[] |
concat(byte[] src,
int from,
int[] dest,
int to,
int amount)
|
static long[] |
concat(byte[] src,
int from,
long[] dest,
int to,
int amount)
|
static short[] |
concat(byte[] src,
int from,
short[] dest,
int to,
int amount)
|
static int[] |
concat(char[] src,
int from,
int[] dest,
int to,
int amount)
|
static long[] |
concat(char[] src,
int from,
long[] dest,
int to,
int amount)
|
static long[] |
concat(int[] src,
int from,
long[] dest,
int to,
int amount)
|
static int[] |
concat(short[] src,
int from,
int[] dest,
int to,
int amount)
|
static long[] |
concat(short[] src,
int from,
long[] dest,
int to,
int amount)
|
static byte[] |
split(char[] src,
int from,
byte[] dest,
int to,
int amount)
|
static byte[] |
split(int[] src,
int from,
byte[] dest,
int to,
int amount)
|
static char[] |
split(int[] src,
int from,
char[] dest,
int to,
int amount)
|
static short[] |
split(int[] src,
int from,
short[] dest,
int to,
int amount)
|
static byte[] |
split(long[] src,
int from,
byte[] dest,
int to,
int amount)
|
static char[] |
split(long[] src,
int from,
char[] dest,
int to,
int amount)
|
static int[] |
split(long[] src,
int from,
int[] dest,
int to,
int amount)
|
static short[] |
split(long[] src,
int from,
short[] dest,
int to,
int amount)
|
static byte[] |
split(short[] src,
int from,
byte[] dest,
int to,
int amount)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BigEndianArray
public BigEndianArray()
concat
public static final char[] concat(byte[] src,
int from,
char[] dest,
int to,
int amount)
- Since:
- 2000.10.05
concat
public static final short[] concat(byte[] src,
int from,
short[] dest,
int to,
int amount)
concat
public static final int[] concat(byte[] src,
int from,
int[] dest,
int to,
int amount)
concat
public static final long[] concat(byte[] src,
int from,
long[] dest,
int to,
int amount)
split
public static final byte[] split(char[] src,
int from,
byte[] dest,
int to,
int amount)
concat
public static final int[] concat(char[] src,
int from,
int[] dest,
int to,
int amount)
concat
public static final long[] concat(char[] src,
int from,
long[] dest,
int to,
int amount)
split
public static final byte[] split(short[] src,
int from,
byte[] dest,
int to,
int amount)
concat
public static final int[] concat(short[] src,
int from,
int[] dest,
int to,
int amount)
concat
public static final long[] concat(short[] src,
int from,
long[] dest,
int to,
int amount)
split
public static final byte[] split(int[] src,
int from,
byte[] dest,
int to,
int amount)
split
public static final char[] split(int[] src,
int from,
char[] dest,
int to,
int amount)
- Since:
- 2000.10.05
split
public static final short[] split(int[] src,
int from,
short[] dest,
int to,
int amount)
concat
public static final long[] concat(int[] src,
int from,
long[] dest,
int to,
int amount)
split
public static final byte[] split(long[] src,
int from,
byte[] dest,
int to,
int amount)
split
public static final char[] split(long[] src,
int from,
char[] dest,
int to,
int amount)
- Since:
- 2000.10.05
split
public static final short[] split(long[] src,
int from,
short[] dest,
int to,
int amount)
split
public static final int[] split(long[] src,
int from,
int[] dest,
int to,
int amount)