CTL.Streams
Class LittleEndian

java.lang.Object
  extended by CTL.Streams.LittleEndian

public class LittleEndian
extends java.lang.Object

Byte order conversion functions


Constructor Summary
LittleEndian()
           
 
Method Summary
static double doubleReverseBytes(double d)
          Reverse the byte order of a double value
static float floatReverseBytes(float f)
          Reverse the byte order of a float value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LittleEndian

public LittleEndian()
Method Detail

doubleReverseBytes

public static double doubleReverseBytes(double d)
Reverse the byte order of a double value

Parameters:
d - Source double
Returns:
Double with reversed bits

floatReverseBytes

public static float floatReverseBytes(float f)
Reverse the byte order of a float value

Parameters:
f - Source float
Returns:
Float with reversed bits