class AllocatedDirectMemoryIO extends DirectMemoryIO
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.atomic.AtomicBoolean |
allocated |
private int |
size |
IO| Constructor and Description |
|---|
AllocatedDirectMemoryIO(Runtime runtime,
int size,
boolean clear) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
boolean |
equals(java.lang.Object obj) |
protected void |
finalize() |
int |
hashCode() |
long |
size()
Gets the size of this memory object in bytes (optional operation).
|
array, arrayLength, arrayOffset, get, get, get, get, get, get, getByte, getDouble, getFloat, getInt, getLongLong, getPointer, getPointer, getShort, getString, getString, hasArray, indexOf, put, put, put, put, put, put, putByte, putDouble, putFloat, putInt, putLongLong, putPointer, putShort, putString, putZeroTerminatedByteArray, setMemorycheckBounds, checkBounds, getAddress, getInt, getLong, getNativeLong, indexOf, putAddress, putAddress, putInt, putLong, putNativeLong, slice, slice, transferFrom, transferToaddress, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrapprivate final java.util.concurrent.atomic.AtomicBoolean allocated
private final int size
public AllocatedDirectMemoryIO(Runtime runtime, int size, boolean clear)
public long size()
Pointersize in class DirectMemoryIOPointer points to. If
the size is unknown, Long.MAX_VALUE is returned}.public int hashCode()
hashCode in class DirectMemoryIOpublic boolean equals(java.lang.Object obj)
equals in class DirectMemoryIOpublic final void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable