jnr.ffi.provider.jffi
Class NativeMemoryManager

java.lang.Object
  extended by jnr.ffi.provider.jffi.NativeMemoryManager
All Implemented Interfaces:
MemoryManager

public class NativeMemoryManager
extends java.lang.Object
implements MemoryManager


Constructor Summary
NativeMemoryManager(NativeRuntime runtime)
           
 
Method Summary
 Pointer allocate(int size)
           
 Pointer allocateDirect(int size)
           
 Pointer allocateDirect(int size, boolean clear)
           
 Pointer allocateTemporary(int size)
           
 Pointer allocateTemporary(int size, boolean clear)
           
 Pointer newOpaquePointer(long address)
           
 Pointer newPointer(java.nio.ByteBuffer buffer)
           
 Pointer newPointer(long address)
           
 Pointer newPointer(long address, long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeMemoryManager

public NativeMemoryManager(NativeRuntime runtime)
Method Detail

allocate

public Pointer allocate(int size)
Specified by:
allocate in interface MemoryManager

allocateDirect

public Pointer allocateDirect(int size)
Specified by:
allocateDirect in interface MemoryManager

allocateDirect

public Pointer allocateDirect(int size,
                              boolean clear)
Specified by:
allocateDirect in interface MemoryManager

allocateTemporary

public Pointer allocateTemporary(int size)

allocateTemporary

public Pointer allocateTemporary(int size,
                                 boolean clear)
Specified by:
allocateTemporary in interface MemoryManager

newPointer

public Pointer newPointer(java.nio.ByteBuffer buffer)
Specified by:
newPointer in interface MemoryManager

newPointer

public Pointer newPointer(long address)
Specified by:
newPointer in interface MemoryManager

newPointer

public Pointer newPointer(long address,
                          long size)
Specified by:
newPointer in interface MemoryManager

newOpaquePointer

public Pointer newOpaquePointer(long address)
Specified by:
newOpaquePointer in interface MemoryManager


Copyright © 2012. All Rights Reserved.