public class ByteSwapper extends Object
Constructor and Description |
---|
ByteSwapper() |
Modifier and Type | Method and Description |
---|---|
static double |
swap(double value)
Byte swap a single double value.
|
static void |
swap(double[] array)
Byte swap an array of doubles.
|
static float |
swap(float value)
Byte swap a single float value.
|
static void |
swap(float[] array)
Byte swap an array of floats.
|
static int |
swap(int value)
Byte swap a single int value.
|
static void |
swap(int[] array)
Byte swap an array of ints.
|
static long |
swap(long value)
Byte swap a single long value.
|
static void |
swap(long[] array)
Byte swap an array of longs.
|
static short |
swap(short value)
Byte swap a single short value.
|
static void |
swap(short[] array)
Byte swap an array of shorts.
|
public static short swap(short value)
value
- Value to byte swap.public static int swap(int value)
value
- Value to byte swap.public static long swap(long value)
value
- Value to byte swap.public static float swap(float value)
value
- Value to byte swap.public static double swap(double value)
value
- Value to byte swap.public static void swap(short[] array)
array
- Array of values to swappublic static void swap(int[] array)
array
- Array of values to swappublic static void swap(long[] array)
array
- Array of values to swappublic static void swap(float[] array)
array
- Array of values to swappublic static void swap(double[] array)
array
- Array of values to swapCopyright © 2011–2017 Mike Thomas. All rights reserved.