static final class CachingNativeMemoryAllocator.AllocatedMemoryIO extends BoundedNativeMemoryIO implements AllocatedDirectMemoryIO
| Modifier and Type | Field and Description |
|---|---|
private CachingNativeMemoryAllocator.MemoryAllocation |
allocation |
private java.lang.Object |
sentinel |
ADDRESS_SIZE, IO, LONG_SIZE, parent, size| Modifier | Constructor and Description |
|---|---|
private |
AllocatedMemoryIO(Ruby runtime,
java.lang.Object sentinel,
CachingNativeMemoryAllocator.MemoryAllocation allocation,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
boolean |
isAutoRelease() |
void |
setAutoRelease(boolean autorelease) |
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, sliceprivate final CachingNativeMemoryAllocator.MemoryAllocation allocation
private java.lang.Object sentinel
private AllocatedMemoryIO(Ruby runtime, java.lang.Object sentinel, CachingNativeMemoryAllocator.MemoryAllocation allocation, int size)
public void free()
free in interface AllocatedDirectMemoryIOpublic void setAutoRelease(boolean autorelease)
setAutoRelease in interface AllocatedDirectMemoryIOpublic boolean isAutoRelease()
isAutoRelease in interface AllocatedDirectMemoryIO