class MemoryPage extends AnyRef

Simulated memory block.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MemoryPage
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MemoryPage(size: Int = 4096)

    Creates a memory block of size bytes.

    Creates a memory block of size bytes.

    size

    Size in bytes of the memory block (default: 4096 bytes).

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 clear(value: Byte): Unit

    Sets whole buffer to specified value.

    Sets whole buffer to specified value.

    value

    The value (a byte!) to populate the page with.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @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
    @IntrinsicCandidate() @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. def read(offset: Int): Byte

    Reads a single byte from this page.

    Reads a single byte from this page.

    offset

    Offset within the memory page.

    returns

    data Data byte read from page at specified offset.

  16. def readArray(offset: Int, len: Int): Array[Byte]

    Reads a byte array from this page.

    Reads a byte array from this page.

    offset

    Offset within the memory page.

    len

    Length of request byte array.

    returns

    byte Array containing the read bytes. Reads may be limited by the page end.

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. def write(offset: Int, data: Byte): Unit

    Writes a single byte from this page.

    Writes a single byte from this page.

    offset

    Offset within the memory page.

    data

    Data byte to write to the page page.

  23. def writeArray(offset: Int, data: Array[Byte]): Int

    Writes a byte array to this page.

    Writes a byte array to this page.

    offset

    Offset within the memory page.

    data

    Byte array to write within the page.

    returns

    Number of bytes written. Writes may be limited by the page end.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped