| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected static void | |
| public void | checkBounds(long
the starting point within this memory region. offset, long the length of the memory region in bytes size)Implements abstract jnr. |
| public long | getAddress(long
The offset from the start of the memory this offset)Pointer represents at which the value will be read.Implements abstract jnr. |
| public long | getInt(Type
Type of integer to read. type, long The offset from the start of the memory this offset)Pointer represents at which the value will be read.Implements abstract jnr. |
| public long | getLong(long
The offset from the start of the memory this offset)Pointer represents at which the value will be read.Implements abstract jnr. long (64 bit) value at the given offset.
|
| public final long | getNativeLong(long
The offset from the start of the memory this offset)Pointer represents at which the value will be read.Implements abstract jnr. long value at the given offset.
|
| public int | indexOf(long
the offset from the start of the memory location this offset, byte Pointer represents to begin searching.the value)byte value to locate.Implements abstract jnr. Pointer.
|
| public void | putAddress(long
The offset from the start of the memory this offset, long Pointer represents at which the value will be written.The native address value to be written. value)Implements abstract jnr. |
| public void | putAddress(long
The offset from the start of the memory this offset, Address Pointer represents at which the value will be written.The native address value to be written. value)Implements abstract jnr. |
| public void | putInt(Type
The integer type. type, long The offset from the start of the memory this offset, long Pointer represents at which the value will be written.the value)int value to be written.Implements abstract jnr. |
| public void | putLong(long
The offset from the start of the memory this offset, long Pointer represents at which the value will be written.the value)long value to be written.Implements abstract jnr. native long value at the given offset.
|
| public void | putNativeLong(long
The offset from the start of the memory this offset, long Pointer represents at which the value will be written.the native value)long value to be written.Implements abstract jnr. long value at the given offset.
|
| public AbstractMemoryIO | slice(long
the offset from the start of the memory this offset)Pointer
represents at which the new Pointer will start.Implements abstract jnr. Pointer representing a sub-region of the memory
referred to by this Pointer.
|
| public AbstractMemoryIO | slice(long
the offset from the start of the memory this offset, long Pointer
represents at which the new Pointer will start.the maximum size of the memory sub-region. size)Implements abstract jnr. Pointer representing a sub-region of the memory
referred to by this Pointer.
|
| public void | transferFrom(long
the offset from the start of the memory location this offset, Pointer Pointer represents to begin copying to.the destination memory location to transfer data from. other, long the offset from the start of the memory location the destination otherOffset, long Pointer represents to begin copying from.the number of bytes to transfer. count)Implements abstract jnr. |
| public void | transferTo(long
the offset from the start of the memory location this offset, Pointer Pointer represents to begin copying from.the destination memory location to transfer data to. other, long the offset from the start of the memory location the destination otherOffset, long Pointer represents to begin copying to.the number of bytes to transfer. count)Implements abstract jnr. |
| AbstractMemoryIO | back to summary |
|---|---|
| protected AbstractMemoryIO(Runtime runtime, long address, boolean isDirect) | |
| checkBounds | back to summary |
|---|---|
| protected static void checkBounds(long size, long off, long len) | |
| checkBounds | back to summary |
|---|---|
| public void checkBounds(long offset, long size) Implements abstract jnr. Doc from jnr. Checks that the memory region is within the bounds of this memory object
| |
| getAddress | back to summary |
|---|---|
| public long getAddress(long offset) Implements abstract jnr. Doc from jnr. Reads a native memory address value at the given offset. A native address can be either 32 or 64 bits in size, depending on the cpu architecture.
| |
| getInt | back to summary |
|---|---|
| public long getInt(Type type, long offset) Implements abstract jnr. Doc from jnr. Reads an integer value of the given type, at the given offset. | |
| getLong | back to summary |
|---|---|
| public long getLong(long offset) Implements abstract jnr. Doc from jnr. Reads a
| |
| getNativeLong | back to summary |
|---|---|
| public final long getNativeLong(long offset) Implements abstract jnr. Doc from jnr. Reads a native A native For windows, a long is always 32 bits (4 bytes) in size, but on unix systems, a long on a 32bit system is 32 bits, and on a 64bit system, is 64 bits.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(long offset, byte value) Implements abstract jnr. Doc from jnr. Returns the location of a byte value within the memory area represented by this
| |
| putAddress | back to summary |
|---|---|
| public void putAddress(long offset, long value) Implements abstract jnr. Doc from jnr. Writes a native memory address value at the given offset. A native address can be either 32 or 64 bits in size, depending on the cpu architecture.
| |
| putAddress | back to summary |
|---|---|
| public void putAddress(long offset, Address value) Implements abstract jnr. Doc from jnr. Writes a native memory address value at the given offset. A native address can be either 32 or 64 bits in size, depending on the cpu architecture.
| |
| putInt | back to summary |
|---|---|
| public void putInt(Type type, long offset, long value) Implements abstract jnr. Doc from jnr. Writes an integer of a specific type, at the given offset. | |
| putLong | back to summary |
|---|---|
| public void putLong(long offset, long value) Implements abstract jnr. Doc from jnr. Writes a
| |
| putNativeLong | back to summary |
|---|---|
| public void putNativeLong(long offset, long value) Implements abstract jnr. Doc from jnr. Writes a native A native For windows, a long is always 32 bits (4 bytes) in size, but on unix systems, a long on a 32bit system is 32 bits, and on a 64bit system, is 64 bits.
| |
| slice | back to summary |
|---|---|
| public AbstractMemoryIO slice(long offset) Implements abstract jnr. Doc from jnr. Creates a new
| |
| slice | back to summary |
|---|---|
| public AbstractMemoryIO slice(long offset, long size) Implements abstract jnr. Doc from jnr. Creates a new
| |
| transferFrom | back to summary |
|---|---|
| public void transferFrom(long offset, Pointer other, long otherOffset, long count) Implements abstract jnr. Doc from jnr. Bulk data transfer from one memory location to another.
| |
| transferTo | back to summary |
|---|---|
| public void transferTo(long offset, Pointer other, long otherOffset, long count) Implements abstract jnr. Doc from jnr. Bulk data transfer from one memory location to another.
| |