com.sun.cldc.jna
Class Structure

java.lang.Object
  extended by com.sun.cldc.jna.Structure
Direct Known Subclasses:
CurveOptions, EllipseDescriptor, FRCCommonControlData, FRCControl.DynamicControlData, NIVision.Range, RegionOfInterest, ShapeDetectionOptions

public abstract class Structure
extends java.lang.Object

Author:
wolf

Field Summary
protected  Pointer backingNativeMemory
          Note: Will throw null pointer exceptions if use attempted in simulator
 
Constructor Summary
Structure()
           
 
Method Summary
 void allocateMemory()
           
 void freeMemory()
           
 Pointer getPointer()
           
abstract  void read()
           
 void release()
           
 void useMemory(Pointer m)
           
abstract  void write()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backingNativeMemory

protected Pointer backingNativeMemory
Note: Will throw null pointer exceptions if use attempted in simulator

Constructor Detail

Structure

public Structure()
Method Detail

useMemory

public final void useMemory(Pointer m)

allocateMemory

public void allocateMemory()
                    throws java.lang.OutOfMemoryError
Throws:
java.lang.OutOfMemoryError
Todo:
What should this do, if anything, in the simulator (if it should even be allowed)?

freeMemory

public void freeMemory()
                throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

release

public void release()
             throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

read

public abstract void read()

write

public abstract void write()

getPointer

public final Pointer getPointer()