Sharkysoft home

lava.array
Class UnsignedArrayCaster

java.lang.Object
  |
  +--lava.array.ArrayCaster
        |
        +--lava.array.UnsignedArrayCaster

public abstract class UnsignedArrayCaster
extends ArrayCaster

Casts arrays of unsigned primitives.

Details: UnsignedArrayCaster is a collection of functions that cast arrays of unsigned primitives from one type to another using standard Lava primitive narrowing and widening conventions. For casting operations involving signed types, see ArrayCaster and SignedArrayCaster.

The signatures for functions in this class follow the same rules as described in ArrayCaster.

Version:
1999.09.11
Author:
Sharky
See Also:
ArrayCaster, SignedArrayCaster

Constructor Summary
UnsignedArrayCaster()
           
 
Method Summary
static byte[] toBytes(double[] src, int from, byte[] dest, int to, int amt)
           
static byte[] toBytes(float[] src, int from, byte[] dest, int to, int amt)
           
static char[] toChars(byte[] src, int from, char[] dest, int to, int amt)
           
static char[] toChars(double[] src, int from, char[] dest, int to, int amt)
           
static char[] toChars(float[] src, int from, char[] dest, int to, int amt)
           
static double[] toDoubles(byte[] src, int from, double[] dest, int to, int amt)
           
static double[] toDoubles(int[] src, int from, double[] dest, int to, int amt)
           
static double[] toDoubles(long[] src, int from, double[] dest, int to, int amt)
           
static double[] toDoubles(short[] src, int from, double[] dest, int to, int amt)
           
static float[] toFloats(byte[] src, int from, float[] dest, int to, int amt)
           
static float[] toFloats(int[] src, int from, float[] dest, int to, int amt)
           
static float[] toFloats(long[] src, int from, float[] dest, int to, int amt)
           
static float[] toFloats(short[] src, int from, float[] dest, int to, int amt)
           
static int[] toInts(byte[] src, int from, int[] dest, int to, int amt)
           
static int[] toInts(double[] src, int from, int[] dest, int to, int amt)
           
static int[] toInts(float[] src, int from, int[] dest, int to, int amt)
           
static int[] toInts(short[] src, int from, int[] dest, int to, int amt)
           
static long[] toLongs(byte[] src, int from, long[] dest, int to, int amt)
           
static long[] toLongs(double[] src, int from, long[] dest, int to, int amt)
           
static long[] toLongs(float[] src, int from, long[] dest, int to, int amt)
           
static long[] toLongs(int[] src, int from, long[] dest, int to, int amt)
           
static long[] toLongs(short[] src, int from, long[] dest, int to, int amt)
           
static short[] toShorts(byte[] src, int from, short[] dest, int to, int amt)
           
static short[] toShorts(double[] src, int from, short[] dest, int to, int amt)
           
static short[] toShorts(float[] src, int from, short[] dest, int to, int amt)
           
 
Methods inherited from class lava.array.ArrayCaster
getPrimitiveElementType, toBytes, toBytes, toBytes, toBytes, toChars, toChars, toChars, toDoubles, toDoubles, toFloats, toFloats, toInts, toInts, toLongs, toShorts, toShorts, toShorts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsignedArrayCaster

public UnsignedArrayCaster()
Method Detail

toDoubles

public static final double[] toDoubles(long[] src,
                                       int from,
                                       double[] dest,
                                       int to,
                                       int amt)

toDoubles

public static final double[] toDoubles(int[] src,
                                       int from,
                                       double[] dest,
                                       int to,
                                       int amt)

toDoubles

public static final double[] toDoubles(short[] src,
                                       int from,
                                       double[] dest,
                                       int to,
                                       int amt)

toDoubles

public static final double[] toDoubles(byte[] src,
                                       int from,
                                       double[] dest,
                                       int to,
                                       int amt)

toFloats

public static final float[] toFloats(long[] src,
                                     int from,
                                     float[] dest,
                                     int to,
                                     int amt)

toFloats

public static final float[] toFloats(int[] src,
                                     int from,
                                     float[] dest,
                                     int to,
                                     int amt)

toFloats

public static final float[] toFloats(short[] src,
                                     int from,
                                     float[] dest,
                                     int to,
                                     int amt)

toFloats

public static final float[] toFloats(byte[] src,
                                     int from,
                                     float[] dest,
                                     int to,
                                     int amt)

toLongs

public static final long[] toLongs(double[] src,
                                   int from,
                                   long[] dest,
                                   int to,
                                   int amt)

toLongs

public static final long[] toLongs(float[] src,
                                   int from,
                                   long[] dest,
                                   int to,
                                   int amt)

toLongs

public static final long[] toLongs(int[] src,
                                   int from,
                                   long[] dest,
                                   int to,
                                   int amt)

toLongs

public static final long[] toLongs(short[] src,
                                   int from,
                                   long[] dest,
                                   int to,
                                   int amt)

toLongs

public static final long[] toLongs(byte[] src,
                                   int from,
                                   long[] dest,
                                   int to,
                                   int amt)

toInts

public static final int[] toInts(double[] src,
                                 int from,
                                 int[] dest,
                                 int to,
                                 int amt)

toInts

public static final int[] toInts(float[] src,
                                 int from,
                                 int[] dest,
                                 int to,
                                 int amt)

toInts

public static final int[] toInts(short[] src,
                                 int from,
                                 int[] dest,
                                 int to,
                                 int amt)

toInts

public static final int[] toInts(byte[] src,
                                 int from,
                                 int[] dest,
                                 int to,
                                 int amt)

toShorts

public static final short[] toShorts(double[] src,
                                     int from,
                                     short[] dest,
                                     int to,
                                     int amt)

toShorts

public static final short[] toShorts(float[] src,
                                     int from,
                                     short[] dest,
                                     int to,
                                     int amt)

toShorts

public static final short[] toShorts(byte[] src,
                                     int from,
                                     short[] dest,
                                     int to,
                                     int amt)

toBytes

public static final byte[] toBytes(double[] src,
                                   int from,
                                   byte[] dest,
                                   int to,
                                   int amt)

toBytes

public static final byte[] toBytes(float[] src,
                                   int from,
                                   byte[] dest,
                                   int to,
                                   int amt)

toChars

public static final char[] toChars(double[] src,
                                   int from,
                                   char[] dest,
                                   int to,
                                   int amt)

toChars

public static final char[] toChars(float[] src,
                                   int from,
                                   char[] dest,
                                   int to,
                                   int amt)

toChars

public static final char[] toChars(byte[] src,
                                   int from,
                                   char[] dest,
                                   int to,
                                   int amt)

Sharkysoft home