An implementation of MemoryIO that throws an exception on any access.
<init>(org.jruby.Ruby runtime, boolean isDirect, long address, String message)array()arrayLength()arrayOffset()asByteBuffer()clear()get(long offset, byte[] dst, int off, int len)get(long offset, short[] dst, int off, int len)get(long offset, int[] dst, int off, int len)get(long offset, long[] dst, int off, int len)get(long offset, float[] dst, int off, int len)get(long offset, double[] dst, int off, int len)getAddress(long offset)getByte(long offset)getDouble(long offset)getFloat(long offset)getInt(long offset)getLong(long offset)getNativeLong(long offset)getShort(long offset)getZeroTerminatedByteArray(long offset)getZeroTerminatedByteArray(long offset, int maxlen)indexOf(long offset, byte value)indexOf(long offset, byte value, int maxlen)order()put(long offset, byte[] src, int off, int len)put(long offset, short[] src, int off, int len)put(long offset, int[] src, int off, int len)put(long offset, long[] src, int off, int len)put(long offset, float[] src, int off, int len)put(long offset, double[] src, int off, int len)putAddress(long offset, long value)putByte(long offset, byte value)putDouble(long offset, double value)putFloat(long offset, float value)putInt(long offset, int value)putLong(long offset, long value)putMemoryIO(long offset, org.jruby.ext.ffi.MemoryIO value)putNativeLong(long offset, long value)putShort(long offset, short value)putZeroTerminatedByteArray(long offset, byte[] bytes, int off, int len)setMemory(long offset, long size, byte value)address()Gets the native address of this memory region. May return NULL (0) if this is not a direct pointer.
Returns: A long value containing the native memory address
isDirect() · also: is_directChecks if the memory area is a native memory pointer.
Returns: true if the memory area is a native pointer.
isNull() · also: is_nullChecks if the memory area is NULL.
Returns: true if the memory area is invalid.