Packages

c

info.osdevelopment.sysemu.memory

ArrayReadOnlyMemory

class ArrayReadOnlyMemory extends ReadOnlyMemory

A read-only memory backed by an array.

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

Instance Constructors

  1. new ArrayReadOnlyMemory(data: Array[Byte])

    data

    the data for the read-only memory.

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. val data: Array[Byte]
  7. def doRead(address: Long): Try[Byte]

    The implementation of the read.

    The implementation of the read.

    address

    the address that should be read

    returns

    a Success with the byte read at the given address or a Failure

    Attributes
    protected
    Definition Classes
    ArrayReadOnlyMemoryReadOnlyMemory
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. 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
  18. 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
  19. 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
  20. 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
  21. def size: Long

    Returns the size of the memory.

    Returns the size of the memory.

    returns

    the size of the memory

    Definition Classes
    ArrayReadOnlyMemoryMemory
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. 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
  28. 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
  29. 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
  30. 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 ReadOnlyMemory

Inherited from Memory

Inherited from AnyRef

Inherited from Any

Ungrouped