Sharkysoft home

lava.array
Class LittleEndianArray

java.lang.Object
  |
  +--lava.array.LittleEndianArray

public final class LittleEndianArray
extends java.lang.Object

Splits/concatenates primitive integer types using "little endian" byte ordering.

Details: The functions in this class perform the same tasks as the functions in BigEndianArray, except that "little endian" byte ordering is used instead of "big endian" byte ordering.

Since:
a long time ago
Version:
2000.05.26
Author:
Sharky
See Also:
BigEndianArray

Constructor Summary
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
 

Constructor Detail

LittleEndianArray

public LittleEndianArray()
Method Detail

concat

public static final char[] concat(byte[] src,
                                  int from,
                                  char[] dest,
                                  int to,
                                  int amount)

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)

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)

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)

Sharkysoft home