class MemoryPage extends AnyRef
Simulated memory block.
- Alphabetic
- By Inheritance
- MemoryPage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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.
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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.
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)