Top Fields Constructors Methods
org.jruby.ext.ffi

public abstract Class MemoryObject

extends RubyObject
Class Inheritance
Known Direct Subclasses
org.jruby.ext.ffi.Struct, org.jruby.ext.ffi.AbstractMemory
Imports
org.jruby.Ruby, .RubyClass, .RubyObject

Field Summary

Modifier and TypeField and Description
private MemoryIO
memory

The Memory I/O object

Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
protected
MemoryObject(Ruby runtime, RubyClass metaClass)

Method Summary

Modifier and TypeMethod and Description
protected abstract MemoryIO
public final MemoryIO

Returns:

A memory accessor.
getMemoryIO
()

Gets the memory I/O accessor to read/write to the memory area.

private MemoryIO
protected final MemoryIO

Returns:

The old memory I/O object
setMemoryIO
(MemoryIO
The new memory I/O object
memory
)

Replaces the native memory object backing this ruby memory object

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

memoryback to summary
private MemoryIO memory

The Memory I/O object

Constructor Detail

MemoryObjectback to summary
protected MemoryObject(Ruby runtime, RubyClass metaClass)

Method Detail

allocateMemoryIOback to summary
protected abstract MemoryIO allocateMemoryIO()
getMemoryIOback to summary
public final MemoryIO getMemoryIO()

Gets the memory I/O accessor to read/write to the memory area.

Returns:MemoryIO

A memory accessor.

initMemoryIOback to summary
private MemoryIO initMemoryIO()
setMemoryIOback to summary
protected final MemoryIO setMemoryIO(MemoryIO memory)

Replaces the native memory object backing this ruby memory object

Parameters
memory:MemoryIO

The new memory I/O object

Returns:MemoryIO

The old memory I/O object