Packages

abstract class ReadOnlyMemory extends Memory

An abstract class to emulate a read-only memory. Subclasses can implement different possibilities to read the content.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadOnlyMemory
  2. Memory
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReadOnlyMemory()
    Attributes
    protected

Abstract Value Members

  1. abstract def doRead(address: Long): Try[Byte]

    The read method to be implemented by a subclass.

    The read method to be implemented by a subclass.

    address

    the address to read

    returns

    a Success with the byte read at the given address, Failure otherwise

    Attributes
    protected
  2. abstract def size: Long

    Returns the size of the memory.

    Returns the size of the memory.

    returns

    the size of the memory

    Definition Classes
    Memory

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def readByte(address: Long): Try[Byte]

    Read a single byte from the memory at the given address.

    Read a single byte from the memory at the given address.

    address

    the address to read from

    returns

    a Success with the byte read, Failure otherwise

    Definition Classes
    ReadOnlyMemoryMemory
  16. final def readInt(address: Long): Try[Int]

    Read an Int from the memory at address ... address + 3.

    Read an Int from the memory at address ... address + 3. The value of address will be the least significant Byte.

    address

    the address to read from

    returns

    a Success with the Int read or a Failure

    Definition Classes
    Memory
  17. final def readLong(address: Long): Try[Long]

    Read a Long from the memory at address ... address + 7.

    Read a Long from the memory at address ... address + 7. The value of address will be the least significant Byte.

    address

    the address to read from

    returns

    a Success with the Long read or a Failure

    Definition Classes
    Memory
  18. final def readShort(address: Long): Try[Short]

    Read a Short from the memory at address ... address + 1.

    Read a Short from the memory at address ... address + 1. The value of address will be the least significant Byte.

    address

    the address to read from

    returns

    a Success with the Short read or a Failure

    Definition Classes
    Memory
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def writeByte(address: Long, value: Byte): Try[Unit]

    Write a single byte to the memory at the given address.

    Write a single byte to the memory at the given address.

    address

    the address to write

    value

    the value to write

    returns

    a Failure when the address is outside the area of the memory

    Definition Classes
    ReadOnlyMemoryMemory
  25. final def writeInt(address: Long, value: Int): Try[Unit]

    Write an Int at address ... address + 3.

    Write an Int at address ... address + 3. The least significant Byte will be written to address.

    address

    the address to write to

    value

    the value to write

    returns

    a Success when the int was written successfully or a Failure otherwise

    Definition Classes
    Memory
  26. final def writeLong(address: Long, value: Long): Try[Unit]

    Write a Long at address ... address + 7.

    Write a Long at address ... address + 7. The least significant Byte will be written to address.

    address

    the address to write to

    value

    the value to write

    returns

    a Success when the long was written successfully or a Failure otherwise

    Definition Classes
    Memory
  27. final def writeShort(address: Long, value: Short): Try[Unit]

    Write a Short to address ... address + 1.

    Write a Short to address ... address + 1. The least significant Byte will be written to address.

    address

    the address to write to

    value

    the value to write

    returns

    a Success when the short was written successfully or a Failure otherwise

    Definition Classes
    Memory

Inherited from Memory

Inherited from AnyRef

Inherited from Any

Ungrouped