public final class ArrayMemoryIO extends AbstractArrayMemoryIO
AbstractArrayMemoryIO.ArrayIObuffer, length, offset| 构造器和说明 |
|---|
ArrayMemoryIO(Runtime runtime,
byte[] bytes,
int off,
int len) |
ArrayMemoryIO(Runtime runtime,
int size) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, clear, get, get, get, get, get, get, getAddress, getArrayIO, getByte, getDouble, getFloat, getInt, getLongLong, getShort, getString, getString, hasArray, index, indexOf, indexOf, isNull, length, offset, put, put, put, put, put, put, putAddress, putByte, putDouble, putFloat, putInt, putLongLong, putShort, putString, putZeroTerminatedByteArray, remaining, setMemory, sizecheckBounds, checkBounds, getInt, getLong, getNativeLong, putAddress, putInt, putLong, putNativeLong, slice, slice, transferFrom, transferToaddress, get, getNullTerminatedPointerArray, getNullTerminatedStringArray, getRuntime, isDirect, newIntPointer, put, toString, wrap, wrap, wrappublic ArrayMemoryIO(Runtime runtime, int size)
public ArrayMemoryIO(Runtime runtime, byte[] bytes, int off, int len)
public Pointer getPointer(long offset)
PointerPointer value at the given offset.getPointer 在类中 Pointeroffset - 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)
PointerPointer value at the given offset.getPointer 在类中 Pointeroffset - 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)
PointerPointer value at the given offset.putPointer 在类中 Pointeroffset - 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 © 2021. All rights reserved.