| java.lang.Object org.python.core.ByteSwapper
ByteSwapper | public class ByteSwapper (Code) | | Simple class that provides the capability to swap or reverse the byte order
of all elements of an Array . Used to convert from one endian
type to another. The class swaps the following types:
- short
- integer
- long
- float
- double
Note this functionality is provided in the base types since 1.5.
author: Andrew Howard |
Method Summary | |
public static void | swap(Object array) Reverses the byte order of all elements in the supplied array, converting
between little and big endian byte order. |
swap | public static void swap(Object array)(Code) | | Reverses the byte order of all elements in the supplied array, converting
between little and big endian byte order.
Parameters: array - the input array for type sensitive byte swapping. |
|
|