Package org.jruby.ext.ffi.jffi
Class CachingNativeMemoryAllocator.MemoryAllocation
java.lang.Object
org.jruby.ext.ffi.jffi.CachingNativeMemoryAllocator.MemoryAllocation
- Enclosing class:
- CachingNativeMemoryAllocator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMemoryAllocation(CachingNativeMemoryAllocator.Magazine magazine, long address) -
Method Summary
Modifier and TypeMethodDescription(package private) final voiddispose()(package private) final voidfree()(package private) final boolean(package private) final booleanvoidsetAutoRelease(boolean autorelease)
-
Field Details
-
UNMANAGED
static final int UNMANAGED- See Also:
-
RELEASED
static final int RELEASED- See Also:
-
magazine
-
address
final long address -
flags
volatile int flags
-
-
Constructor Details
-
MemoryAllocation
MemoryAllocation(CachingNativeMemoryAllocator.Magazine magazine, long address)
-
-
Method Details
-
dispose
final void dispose() -
isReleased
final boolean isReleased() -
isUnmanaged
final boolean isUnmanaged() -
setAutoRelease
public void setAutoRelease(boolean autorelease) -
free
final void free()
-