JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.pointers.memory
Class AbstractMemoryBlock

java.lang.Object
  extended by org.xvolks.jnative.pointers.memory.AbstractMemoryBlock
All Implemented Interfaces:
MemoryBlock
Direct Known Subclasses:
GlobalMemoryBlock, HeapMemoryBlock, NativeMemoryBlock

public abstract class AbstractMemoryBlock
extends java.lang.Object
implements MemoryBlock

$Id: AbstractMemoryBlock.java,v 1.3 2006/06/09 20:44:04 mdenty Exp $

New Memory blocks should extends this class

This software is released under the LGPL.


Method Summary
 java.lang.Integer getPointer()
          Method getPointer
 int getSize()
          Method getSize
protected  void setPointer(java.lang.Integer pointer)
           
protected  void setSize(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xvolks.jnative.pointers.memory.MemoryBlock
dispose, reserveMemory
 

Method Detail

getSize

public final int getSize()
                  throws java.lang.NullPointerException
Method getSize

Specified by:
getSize in interface MemoryBlock
Returns:
the size of this memory block
Throws:
java.lang.NullPointerException - if the pointer is null

getPointer

public final java.lang.Integer getPointer()
                                   throws java.lang.NullPointerException
Method getPointer

Specified by:
getPointer in interface MemoryBlock
Returns:
the pointer that addresses the memory block
Throws:
java.lang.NullPointerException - if the pointer is null

setPointer

protected void setPointer(java.lang.Integer pointer)

setSize

protected void setSize(int size)

JNative v1.3 project : see http://jnative.sf.net