| Modifier and Type | Field and Description |
|---|---|
| protected static final MemoryIO | |
| pack-priv final NativeMemoryIO | |
| private final Ruby |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public int | |
| public int | |
| public final ByteBuffer | asByteBuffer()
Implements abstract org. Creates a view of this memory object as a java NIO byte buffer. |
| public MemoryIO | dup()
Implements abstract org. Duplicates this |
| public final boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final void | get(long
The offset within the memory area to read the bytes. offset, byte[] The output byte array to place the data. dst, int The offset within the byte array to start copying. off, int The length of data to read. len)Implements abstract org. Reads an array of bytes from the memory area at the specified offset. |
| public final void | get(long
The offset within the memory area to read the shorts. offset, short[] The output array to place the data in. dst, int The offset within the array to start copying. off, int The number of shorts to read. len)Implements abstract org. Reads an array of shorts from the memory area at the specified offset. |
| public final void | get(long
The offset within the memory area to read the ints. offset, int[] The output array to place the data in. dst, int The offset within the array to start copying. off, int The number of ints to read. len)Implements abstract org. Reads an array of ints from the memory area at the specified offset. |
| public final void | get(long
The offset within the memory area to read the longs. offset, long[] The output array to place the data in. dst, int The offset within the array to start copying. off, int The number of longs to read. len)Implements abstract org. Reads an array of longs from the memory area at the specified offset. |
| public final void | get(long
The offset within the memory area to read the floats. offset, float[] The output array to place the data in. dst, int The offset within the array to start copying. off, int The number of floats to read. len)Implements abstract org. Reads an array of floats from the memory area at the specified offset. |
| public final void | get(long
The offset within the memory area to read the doubles. offset, double[] The output array to place the data in. dst, int The offset within the array to start copying. off, int The number of doubles to read. len)Implements abstract org. Reads an array of doubles from the memory area at the specified offset. |
| public final long | getAddress(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a pointer value at the specified offset within the memory area. |
| public final byte | getByte(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads an 8 bit integer value from the memory area. |
| public final double | getDouble(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a double value from the memory area. |
| public final float | getFloat(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a float value from the memory area. |
| public final int | getInt(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a 32 bit integer value from the memory area. |
| public final long | getLong(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a 64 bit integer value from the memory area. |
| public final MemoryIO | getMemoryIO(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a pointer value at the specified offset within the memory area, and wraps it in an abstract memory accessor. |
| public final long | getNativeLong(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a native long integer value from the memory area. |
| public final short | getShort(long
The offset within the memory area to read the value. offset)Implements abstract org. Reads a 16 bit integer value from the memory area. |
| public final byte[] | getZeroTerminatedByteArray(long
The offset within the memory area of the start of the string. offset)Implements abstract org. Reads a zero terminated byte array (e.g. an ascii or utf-8 string) |
| public final byte[] | getZeroTerminatedByteArray(long
The offset within the memory area of the start of the string. offset, int The maximum length to search for the zero byte terminator. maxlen)Implements abstract org. Reads a zero terminated byte array (e.g. an ascii or utf-8 string) |
| public final int | |
| public final int | indexOf(long
The offset within the memory area to start searching. offset, byte The value to search for. value)Implements abstract org. Gets the first index within the memory area of a particular 8 bit value. |
| public final int | indexOf(long
The offset within the memory area to start searching. offset, byte The value to search for. value, int maxlen)Implements abstract org. Gets the first index within the memory area of a particular 8 bit value. |
| public final ByteOrder | order()
Implements abstract org. Gets the |
| public final void | put(long
The offset within the memory area to start writing the bytes. offset, byte[] The byte array to write to the memory area. src, int The offset within the byte array to start copying. off, int The length of data to write. len)Implements abstract org. Writes an array of bytes to the memory area at the specified offset. |
| public final void | put(long
The offset within the memory area to start writing the shorts. offset, short[] The array to write to the memory area. src, int The offset within the array to start copying. off, int The number of shorts to write. len)Implements abstract org. Writes an array of shorts to the memory area at the specified offset. |
| public final void | put(long
The offset within the memory area to start writing the ints. offset, int[] The array to write to the memory area. src, int The offset within the array to start copying. off, int The number of ints to write. len)Implements abstract org. Writes an array of ints to the memory area at the specified offset. |
| public final void | put(long
The offset within the memory area to start writing the longs. offset, long[] The array to write to the memory area. src, int The offset within the array to start copying. off, int The number of longs to write. len)Implements abstract org. Writes an array of longs to the memory area at the specified offset. |
| public final void | put(long
The offset within the memory area to start writing the floats. offset, float[] The array to write to the memory area. src, int The offset within the array to start copying. off, int The number of floats to write. len)Implements abstract org. Writes an array of floats to the memory area at the specified offset. |
| public final void | put(long
The offset within the memory area to start writing the doubles. offset, double[] The array to write to the memory area. src, int The offset within the array to start copying. off, int The number of doubles to write. len)Implements abstract org. Writes an array of doubles to the memory area at the specified offset. |
| public final void | putAddress(long
The offset within the memory area to write the value. offset, long The pointer value to write to the memory location. value)Implements abstract org. Writes a pointer value to the memory area at the specified offset. |
| public final void | putByte(long
The offset within the memory area to write the value. offset, byte The 8 bit integer value to write to the memory location. value)Implements abstract org. Writes an 8 bit integer value to the memory area at the specified offset. |
| public final void | putDouble(long
The offset within the memory area to write the value. offset, double The 64 bit float value to write to the memory location. value)Implements abstract org. Writes a 64 bit float value to the memory area at the specified offset. |
| public final void | putFloat(long
The offset within the memory area to write the value. offset, float The 32 bit float value to write to the memory location. value)Implements abstract org. Writes a 32 bit float value to the memory area at the specified offset. |
| public final void | putInt(long
The offset within the memory area to write the value. offset, int The 32 bit integer value to write to the memory location. value)Implements abstract org. Writes a 32 bit integer value to the memory area at the specified offset. |
| public final void | putLong(long
The offset within the memory area to write the value. offset, long The 64 bit integer value to write to the memory location. value)Implements abstract org. Writes a 64 bit integer value to the memory area at the specified offset. |
| public final void | putMemoryIO(long
The offset within the memory area to write the value. offset, MemoryIO The pointer value to write to the memory location. value)Implements abstract org. Writes a pointer value to the memory area at the specified offset. |
| public final void | putNativeLong(long
The offset within the memory area to write the value. offset, long The native long integer value to write to the memory location. value)Implements abstract org. Writes a native long integer value to the memory area at the specified offset. |
| public final void | putShort(long
The offset within the memory area to write the value. offset, short The 16 bit integer value to write to the memory location. value)Implements abstract org. Writes a 16 bit integer value to the memory area at the specified offset. |
| public void | putZeroTerminatedByteArray(long
The offset within the memory area of the start of the string. offset, byte[] The byte array to write to the memory. bytes, int The offset with the byte array to start copying. off, int The number of bytes of the byte array to write to the memory area. (not including zero byte) len)Implements abstract org. Writes a byte array to memory, and appends a zero terminator |
| public final void | setMemory(long
The offset within the memory area to start writing. offset, long The number of bytes to set to the value. size, byte The value to set each byte to. value)Implements abstract org. Sets the contents of the memory area to the value. |
| public NativeMemoryIO | slice(long
The offset within the existing memory area to start the
new offset)MemoryIO at.Implements abstract org. Creates a new MemoryIO pointing to a subset of the memory area of this
|
| public MemoryIO | slice(long
The offset within the existing memory area to start the
new offset, long MemoryIO at.The size of the new slice. size)Implements abstract org. Creates a new MemoryIO pointing to a subset of the memory area of this
|
| pack-priv static final MemoryIO |
| IO | back to summary |
|---|---|
| protected static final MemoryIO IO | |
| parent | back to summary |
|---|---|
| pack-priv final NativeMemoryIO parent | |
| runtime | back to summary |
|---|---|
| private final Ruby runtime | |
| NativeMemoryIO | back to summary |
|---|---|
| pack-priv NativeMemoryIO(Ruby runtime, long address) | |
| NativeMemoryIO | back to summary |
|---|---|
| private NativeMemoryIO(NativeMemoryIO parent, long offset) | |
| array | back to summary |
|---|---|
| public Object array() Implements abstract org. | |
| arrayLength | back to summary |
|---|---|
| public int arrayLength() Implements abstract org. | |
| arrayOffset | back to summary |
|---|---|
| public int arrayOffset() Implements abstract org. | |
| asByteBuffer | back to summary |
|---|---|
| public final ByteBuffer asByteBuffer() Implements abstract org. Doc from org. Creates a view of this memory object as a java NIO byte buffer.
| |
| dup | back to summary |
|---|---|
| public MemoryIO dup() Implements abstract org. Doc from org. Duplicates this
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public final void get(long offset, byte[] dst, int off, int len) Implements abstract org. Doc from org. Reads an array of bytes from the memory area at the specified offset.
| |
| get | back to summary |
|---|---|
| public final void get(long offset, short[] dst, int off, int len) Implements abstract org. Doc from org. Reads an array of shorts from the memory area at the specified offset.
| |
| get | back to summary |
|---|---|
| public final void get(long offset, int[] dst, int off, int len) Implements abstract org. Doc from org. Reads an array of ints from the memory area at the specified offset.
| |
| get | back to summary |
|---|---|
| public final void get(long offset, long[] dst, int off, int len) Implements abstract org. Doc from org. Reads an array of longs from the memory area at the specified offset.
| |
| get | back to summary |
|---|---|
| public final void get(long offset, float[] dst, int off, int len) Implements abstract org. Doc from org. Reads an array of floats from the memory area at the specified offset.
| |
| get | back to summary |
|---|---|
| public final void get(long offset, double[] dst, int off, int len) Implements abstract org. Doc from org. Reads an array of doubles from the memory area at the specified offset.
| |
| getAddress | back to summary |
|---|---|
| public final long getAddress(long offset) Implements abstract org. Doc from org. Reads a pointer value at the specified offset within the memory area.
| |
| getByte | back to summary |
|---|---|
| public final byte getByte(long offset) Implements abstract org. Doc from org. Reads an 8 bit integer value from the memory area.
| |
| getDouble | back to summary |
|---|---|
| public final double getDouble(long offset) Implements abstract org. Doc from org. Reads a double value from the memory area.
| |
| getFloat | back to summary |
|---|---|
| public final float getFloat(long offset) Implements abstract org. Doc from org. Reads a float value from the memory area.
| |
| getInt | back to summary |
|---|---|
| public final int getInt(long offset) Implements abstract org. Doc from org. Reads a 32 bit integer value from the memory area.
| |
| getLong | back to summary |
|---|---|
| public final long getLong(long offset) Implements abstract org. Doc from org. Reads a 64 bit integer value from the memory area.
| |
| getMemoryIO | back to summary |
|---|---|
| public final MemoryIO getMemoryIO(long offset) Implements abstract org. Doc from org. Reads a pointer value at the specified offset within the memory area, and wraps it in an abstract memory accessor.
| |
| getNativeLong | back to summary |
|---|---|
| public final long getNativeLong(long offset) Implements abstract org. Doc from org. Reads a native long integer value from the memory area. A native long is 32bits on either ILP32 or LLP64 architectures, and 64 bits on an LP64 architecture. This means that it will always read a 32bit value on Windows, but on Unix systems such as MacOS or Linux, it will read a 32bit value on 32bit systems, and a 64bit value on 64bit systems.
| |
| getShort | back to summary |
|---|---|
| public final short getShort(long offset) Implements abstract org. Doc from org. Reads a 16 bit integer value from the memory area.
| |
| getZeroTerminatedByteArray | back to summary |
|---|---|
| public final byte[] getZeroTerminatedByteArray(long offset) Implements abstract org. Doc from org. Reads a zero terminated byte array (e.g. an ascii or utf-8 string)
| |
| getZeroTerminatedByteArray | back to summary |
|---|---|
| public final byte[] getZeroTerminatedByteArray(long offset, int maxlen) Implements abstract org. Doc from org. Reads a zero terminated byte array (e.g. an ascii or utf-8 string)
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| indexOf | back to summary |
|---|---|
| public final int indexOf(long offset, byte value) Implements abstract org. Doc from org. Gets the first index within the memory area of a particular 8 bit value.
| |
| indexOf | back to summary |
|---|---|
| public final int indexOf(long offset, byte value, int maxlen) Implements abstract org. Doc from org. Gets the first index within the memory area of a particular 8 bit value.
| |
| order | back to summary |
|---|---|
| public final ByteOrder order() Implements abstract org. Doc from org. Gets the
| |
| put | back to summary |
|---|---|
| public final void put(long offset, byte[] src, int off, int len) Implements abstract org. Doc from org. Writes an array of bytes to the memory area at the specified offset.
| |
| put | back to summary |
|---|---|
| public final void put(long offset, short[] src, int off, int len) Implements abstract org. Doc from org. Writes an array of shorts to the memory area at the specified offset.
| |
| put | back to summary |
|---|---|
| public final void put(long offset, int[] src, int off, int len) Implements abstract org. Doc from org. Writes an array of ints to the memory area at the specified offset.
| |
| put | back to summary |
|---|---|
| public final void put(long offset, long[] src, int off, int len) Implements abstract org. Doc from org. Writes an array of longs to the memory area at the specified offset.
| |
| put | back to summary |
|---|---|
| public final void put(long offset, float[] src, int off, int len) Implements abstract org. Doc from org. Writes an array of floats to the memory area at the specified offset.
| |
| put | back to summary |
|---|---|
| public final void put(long offset, double[] src, int off, int len) Implements abstract org. Doc from org. Writes an array of doubles to the memory area at the specified offset.
| |
| putAddress | back to summary |
|---|---|
| public final void putAddress(long offset, long value) Implements abstract org. Doc from org. Writes a pointer value to the memory area at the specified offset.
| |
| putByte | back to summary |
|---|---|
| public final void putByte(long offset, byte value) Implements abstract org. Doc from org. Writes an 8 bit integer value to the memory area at the specified offset.
| |
| putDouble | back to summary |
|---|---|
| public final void putDouble(long offset, double value) Implements abstract org. Doc from org. Writes a 64 bit float value to the memory area at the specified offset.
| |
| putFloat | back to summary |
|---|---|
| public final void putFloat(long offset, float value) Implements abstract org. Doc from org. Writes a 32 bit float value to the memory area at the specified offset.
| |
| putInt | back to summary |
|---|---|
| public final void putInt(long offset, int value) Implements abstract org. Doc from org. Writes a 32 bit integer value to the memory area at the specified offset.
| |
| putLong | back to summary |
|---|---|
| public final void putLong(long offset, long value) Implements abstract org. Doc from org. Writes a 64 bit integer value to the memory area at the specified offset.
| |
| putMemoryIO | back to summary |
|---|---|
| public final void putMemoryIO(long offset, MemoryIO value) Implements abstract org. Doc from org. Writes a pointer value to the memory area at the specified offset.
| |
| putNativeLong | back to summary |
|---|---|
| public final void putNativeLong(long offset, long value) Implements abstract org. Doc from org. Writes a native long integer value to the memory area at the specified offset.
| |
| putShort | back to summary |
|---|---|
| public final void putShort(long offset, short value) Implements abstract org. Doc from org. Writes a 16 bit integer value to the memory area at the specified offset.
| |
| putZeroTerminatedByteArray | back to summary |
|---|---|
| public void putZeroTerminatedByteArray(long offset, byte[] bytes, int off, int len) Implements abstract org. Doc from org. Writes a byte array to memory, and appends a zero terminator
| |
| setMemory | back to summary |
|---|---|
| public final void setMemory(long offset, long size, byte value) Implements abstract org. Doc from org. Sets the contents of the memory area to the value.
| |
| slice | back to summary |
|---|---|
| public NativeMemoryIO slice(long offset) Implements abstract org. Doc from org. Creates a new MemoryIO pointing to a subset of the memory area of this
| |
| slice | back to summary |
|---|---|
| public MemoryIO slice(long offset, long size) Implements abstract org. Doc from org. Creates a new MemoryIO pointing to a subset of the memory area of this
| |
| wrap | back to summary |
|---|---|
| pack-priv static final MemoryIO wrap(Ruby runtime, long address) | |