Package org.python.core.util
Class ByteSwapper
java.lang.Object
org.python.core.util.ByteSwapper
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
- Author:
- Andrew Howard
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ByteSwapper
public ByteSwapper()
-
-
Method Details
-
swap
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.
-