Int16Buffer

value class Int16Buffer(val buffer: Buffer) : TypedBuffer

Constructors

Link copied to clipboard
constructor(size: Int, direct: Boolean = false)
constructor(data: ShortArray, offset: Int = 0, size: Int = data.size - offset)
constructor(buffer: Buffer)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val buffer: Buffer
Link copied to clipboard
open override val elementSizeInBytes: Int
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun get(index: Int): Short
Link copied to clipboard
fun getArray(index: Int = 0, size: Int = this.size - index): ShortArray
fun getArray(index: Int, out: ShortArray, offset: Int = 0, size: Int = out.size - offset): ShortArray
Link copied to clipboard
operator fun set(index: Int, value: Short)
Link copied to clipboard
fun setArray(index: Int, inp: ShortArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun slice(start: Int = 0, end: Int = this.size): Int16Buffer
Link copied to clipboard
fun sliceWithSize(start: Int = 0, size: Int = this.size - start): Int16Buffer