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, setMemory, transferFrom, transferTo
checkBounds, checkBounds, getAddress, getInt, getLong, getNativeLong, indexOf, putAddress, putAddress, putInt, putLong, putNativeLong, slice, slice
address, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrap
private final java.util.concurrent.atomic.AtomicBoolean allocated
private final int size
public AllocatedDirectMemoryIO(Runtime runtime, int size, boolean clear)
public long size()
Pointer
size
in class DirectMemoryIO
Pointer
points to. If
the size is unknown, Long.MAX_VALUE
is returned}.public int hashCode()
hashCode
in class DirectMemoryIO
public boolean equals(java.lang.Object obj)
equals
in class DirectMemoryIO
public final void dispose()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable