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


org.xvolks.jnative.pointers.memory
Class MemoryBlockFactory

java.lang.Object
  extended by org.xvolks.jnative.pointers.memory.MemoryBlockFactory

public class MemoryBlockFactory
extends java.lang.Object

$Id: MemoryBlockFactory.java,v 1.3 2006/01/14 19:27:02 mdenty Exp $

This factory permits to reserve a block of memory of the default type

HeapMemoryBlock : is currently the default type.

You should allways call setPreferredMemoryType before, default type is subject to change !!

This software is released under the GPL.


Method Summary
static MemoryBlock createMemoryBlock(int size)
           
static void setPreferredMemoryType(java.lang.Class<? extends MemoryBlock> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setPreferredMemoryType

public static void setPreferredMemoryType(java.lang.Class<? extends MemoryBlock> type)
                                   throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException

createMemoryBlock

public static MemoryBlock createMemoryBlock(int size)
                                     throws NativeException
Throws:
NativeException

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