"

2013 FRC Java API

"

com.sun.squawk
Class ObjectMemoryEndianessSwapper

java.lang.Object
  extended by com.sun.squawk.ObjectMemoryEndianessSwapper

public final class ObjectMemoryEndianessSwapper
extends Object

A ObjectMemoryEndianessSwapper instance is used to swap the endianess of all the data values in an ObjectMemory that are accessed via direct loads by the machine where such loads assume a fixed endianess of the data.


Method Summary
static void swap(ObjectMemory om, boolean toPlatform, boolean isCanonical)
          Swaps the endianess of all the data values in om that are accessed via direct loads by the machine where such loads assume a fixed endianess of the data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

swap

public static void swap(ObjectMemory om,
                        boolean toPlatform,
                        boolean isCanonical)
Swaps the endianess of all the data values in om that are accessed via direct loads by the machine where such loads assume a fixed endianess of the data.

Parameters:
om - the object memory whose endianess is to be swapped
toPlatform - true if om is in the opposite endianess of the host platform
isCanonical - true if om is in canonical form (i.e. has not had its pointers relocated)

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"