Package org.jruby.ext.ffi.jffi
Class CachingNativeMemoryAllocator.AllocatedMemoryIO
java.lang.Object
org.jruby.ext.ffi.MemoryIO
org.jruby.ext.ffi.jffi.BoundedNativeMemoryIO
org.jruby.ext.ffi.jffi.CachingNativeMemoryAllocator.AllocatedMemoryIO
- All Implemented Interfaces:
AllocatedDirectMemoryIO
- Enclosing class:
- CachingNativeMemoryAllocator
static final class CachingNativeMemoryAllocator.AllocatedMemoryIO
extends BoundedNativeMemoryIO
implements AllocatedDirectMemoryIO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CachingNativeMemoryAllocator.MemoryAllocationprivate ObjectFields inherited from class org.jruby.ext.ffi.jffi.BoundedNativeMemoryIO
ADDRESS_SIZE, IO, LONG_SIZE, parent, size -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAllocatedMemoryIO(Ruby runtime, Object sentinel, CachingNativeMemoryAllocator.MemoryAllocation allocation, int size) -
Method Summary
Methods inherited from class org.jruby.ext.ffi.jffi.BoundedNativeMemoryIO
array, arrayLength, arrayOffset, asByteBuffer, dup, equals, get, get, get, get, get, get, getAddress, getByte, getDouble, getFloat, getInt, getLong, getMemoryIO, getNativeLong, getRuntime, getShort, getZeroTerminatedByteArray, getZeroTerminatedByteArray, hashCode, indexOf, indexOf, order, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLong, putMemoryIO, putNativeLong, putShort, putZeroTerminatedByteArray, setMemory, slice, slice
-
Field Details
-
allocation
-
sentinel
-
-
Constructor Details
-
AllocatedMemoryIO
private AllocatedMemoryIO(Ruby runtime, Object sentinel, CachingNativeMemoryAllocator.MemoryAllocation allocation, int size)
-
-
Method Details
-
free
public void free()- Specified by:
freein interfaceAllocatedDirectMemoryIO
-
setAutoRelease
public void setAutoRelease(boolean autorelease) - Specified by:
setAutoReleasein interfaceAllocatedDirectMemoryIO
-
isAutoRelease
public boolean isAutoRelease()- Specified by:
isAutoReleasein interfaceAllocatedDirectMemoryIO
-