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

Link copied to clipboard
fun <T : Any> MemoryBuffer(memory: Memory, spec: MemorySpec<T>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun get(index: Int): T

Gets element at given index.

Link copied to clipboard
open operator override fun iterator(): Iterator<T>

Iterates over all elements.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override val size: Int

The size of this buffer.

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard