public class ByteBufferMemoryIO extends AbstractBufferMemoryIO
buffer
Constructor and Description |
---|
ByteBufferMemoryIO(Runtime runtime,
ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
Pointer |
getPointer(long offset)
Reads an
Pointer value at the given offset. |
Pointer |
getPointer(long offset,
long size)
Reads an
Pointer value at the given offset. |
void |
putPointer(long offset,
Pointer value)
Writes a
Pointer value at the given offset. |
array, arrayLength, arrayOffset, get, get, get, get, get, get, getByte, getByteBuffer, getDouble, getFloat, getInt, getLongLong, getShort, getString, getString, getString, hasArray, indexOf, put, put, put, put, put, put, putByte, putDouble, putFloat, putInt, putLongLong, putShort, putString, putString, setMemory, size
checkBounds, checkBounds, getAddress, getInt, getLong, getNativeLong, indexOf, putAddress, putAddress, putInt, putLong, putNativeLong, slice, slice, transferFrom, transferTo
address, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrap
public ByteBufferMemoryIO(Runtime runtime, ByteBuffer buffer)
public Pointer getPointer(long offset)
Pointer
Pointer
value at the given offset.getPointer
in class Pointer
offset
- the offset from the start of the memory this Pointer
represents at which the value will be read.Pointer
value read from memory.public Pointer getPointer(long offset, long size)
Pointer
Pointer
value at the given offset.getPointer
in class Pointer
offset
- the offset from the start of the memory this Pointer
represents at which the value will be read.size
- the maximum size of the memory location the returned Pointer
represents.Pointer
value read from memory.public void putPointer(long offset, Pointer value)
Pointer
Pointer
value at the given offset.putPointer
in class Pointer
offset
- The offset from the start of the memory this Pointer
represents at which the value will be written.value
- the Pointer
value to be written to memory.Copyright © 2017. All rights reserved.