Class MemoryObject

All Implemented Interfaces:
Serializable, Cloneable, Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType
Direct Known Subclasses:
AbstractMemory, Struct

public abstract class MemoryObject extends RubyObject
See Also:
  • Constructor Details

    • MemoryObject

      protected MemoryObject(Ruby runtime, RubyClass metaClass)
  • Method Details

    • getMemoryIO

      public final MemoryIO getMemoryIO()
      Gets the memory I/O accessor to read/write to the memory area.
      Returns:
      A memory accessor.
    • setMemoryIO

      protected final MemoryIO setMemoryIO(MemoryIO memory)
      Replaces the native memory object backing this ruby memory object
      Parameters:
      memory - The new memory I/O object
      Returns:
      The old memory I/O object
    • allocateMemoryIO

      protected abstract MemoryIO allocateMemoryIO()