Memory

interface Memory(source)

Represents a display of certain memory structure.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun copy(): Memory

Creates an independent copy of this memory.

Link copied to clipboard
inline fun <R> Memory.read(block: MemoryReader.() -> R): R

Uses the memory for read then releases the reader.

Link copied to clipboard
abstract fun reader(): MemoryReader

Gets or creates a reader of this memory.

Link copied to clipboard
abstract fun view(offset: Int, length: Int): Memory

Get a projection of this memory (it reflects the changes in the parent memory block).

Link copied to clipboard
inline fun Memory.write(block: MemoryWriter.() -> Unit)

Uses the memory for write then releases the writer.

Link copied to clipboard
abstract fun writer(): MemoryWriter

Gets or creates a writer of this memory.

Properties

Link copied to clipboard
abstract val size: Int

The length of this memory in bytes.