MemoryBuffer

open class MemoryBuffer<T : Any>(memory: Memory, spec: MemorySpec<T>) : Buffer<T>

A non-boxing buffer over Memory object.

Parameters

T

the type of elements contained in the buffer.

Constructors

MemoryBuffer
Link copied to clipboard
common
fun <T : Any> MemoryBuffer(memory: Memory, spec: MemorySpec<T>)
the type of elements contained in the buffer.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

get
Link copied to clipboard
common
open operator override fun get(index: Int): T
Gets element at given index.
iterator
Link copied to clipboard
common
open operator override fun iterator(): Iterator<T>
Iterates over all elements.
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

size
Link copied to clipboard
common
open override val size: Int
The size of this buffer.

Inheritors

MutableMemoryBuffer
Link copied to clipboard

Sources

common source
Link copied to clipboard