Package-level declarations

Types

Link copied to clipboard
interface BaseBuffer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
actual class Buffer : AutoCloseable
expect class Buffer : AutoCloseable
actual class Buffer : AutoCloseable
actual class Buffer : AutoCloseable
actual class Buffer : AutoCloseable
actual class Buffer : AutoCloseable
Link copied to clipboard
Link copied to clipboard
class ByteArrayReader(val data: ByteArray, val start: Int, val size: Int = 0)
Link copied to clipboard
inline class ByteArrayReaderBE(val bar: ByteArrayReader)
Link copied to clipboard
inline class ByteArrayReaderLE(val bar: ByteArrayReader)
Link copied to clipboard
typealias DataView = Buffer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
value class Float64Buffer(val buffer: Buffer) : TypedBuffer
Link copied to clipboard
Link copied to clipboard
inline class FloatArrayFromIntArray(val base: IntArray)

View of base reinterpreted as Float

Link copied to clipboard
value class Int16Buffer(val buffer: Buffer) : TypedBuffer
Link copied to clipboard
Link copied to clipboard
value class Int64Buffer(val buffer: Buffer) : TypedBuffer
Link copied to clipboard
value class Int8Buffer(val buffer: Buffer) : TypedBuffer
Link copied to clipboard
Link copied to clipboard
open class KmemGCImpl
Link copied to clipboard
Link copied to clipboard
inline class NInt(val data: CPointer<IntVar>?)
Link copied to clipboard
class SimpleBytesDeque(val initialBits: Int = 10, val allowGrow: Boolean = true)
Link copied to clipboard
Link copied to clipboard
class SimpleRingBuffer(val bits: Int)
Link copied to clipboard
Link copied to clipboard
inline class UByteArrayInt(val data: ByteArray)

View of bytes reinterpreted as Int

Link copied to clipboard
Link copied to clipboard
value class Uint32Buffer(val buffer: Buffer) : TypedBuffer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline class UShortArrayInt(val data: ShortArray)

View of shorts reinterpreted as Int

Properties

Link copied to clipboard
val Buffer.arrayByte: Int8Array
val Buffer.arrayByte: Int8Array
Link copied to clipboard
val Buffer.arrayDouble: Float64Array
val Buffer.arrayDouble: Float64Array
Link copied to clipboard
val Buffer.arrayFloat: Float32Array
val Buffer.arrayFloat: Float32Array
Link copied to clipboard
val Buffer.arrayInt: Int32Array
val Buffer.arrayInt: Int32Array
Link copied to clipboard
val Buffer.arrayShort: Int16Array
val Buffer.arrayShort: Int16Array
Link copied to clipboard
val Buffer.arrayUByte: Uint8Array
val Buffer.arrayUByte: Uint8Array
Link copied to clipboard
val Buffer.buffer: ArrayBuffer
val Buffer.buffer: ArrayBuffer
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
actual val KmemGC: KmemGCImpl
expect val KmemGC: KmemGCImpl
actual val KmemGC: KmemGCImpl
actual val KmemGC: KmemGCImpl
actual val KmemGC: KmemGCImpl
actual val KmemGC: KmemGCImpl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun arrayadd(array: Float32Buffer, value: Float, start: Int = 0, end: Int = array.size)
fun arrayadd(array: Float64Buffer, value: Double, start: Int = 0, end: Int = array.size)
fun arrayadd(array: Int16Buffer, value: Short, start: Int = 0, end: Int = array.size)
fun arrayadd(array: Int32Buffer, value: Int, start: Int = 0, end: Int = array.size)
fun arrayadd(array: Int8Buffer, value: Byte, start: Int = 0, end: Int = array.size)
fun arrayadd(array: Uint16Buffer, value: Short, start: Int = 0, end: Int = array.size)
fun arrayadd(array: Uint8Buffer, value: Byte, start: Int = 0, end: Int = array.size)
fun arrayadd(array: ByteArray, value: Byte, start: Int = 0, end: Int = array.size)
fun arrayadd(array: DoubleArray, value: Double, start: Int = 0, end: Int = array.size)
fun arrayadd(array: FloatArray, value: Float, start: Int = 0, end: Int = array.size)
fun arrayadd(array: IntArray, value: Int, start: Int = 0, end: Int = array.size)
fun arrayadd(array: LongArray, value: Long, start: Int = 0, end: Int = array.size)
fun arrayadd(array: ShortArray, value: Short, start: Int = 0, end: Int = array.size)
Link copied to clipboard
fun arraycmp(src: Buffer, srcPos: Int, dst: Buffer, dstPos: Int, size: Int): Int
fun <T : Comparable<T>> arraycmp(src: Array<T>, srcPos: Int, dst: Array<T>, dstPos: Int, size: Int): Int
fun arraycmp(src: BooleanArray, srcPos: Int, dst: BooleanArray, dstPos: Int, size: Int): Int
fun arraycmp(src: ByteArray, srcPos: Int, dst: ByteArray, dstPos: Int, size: Int): Int
fun arraycmp(src: CharArray, srcPos: Int, dst: CharArray, dstPos: Int, size: Int): Int
fun arraycmp(src: DoubleArray, srcPos: Int, dst: DoubleArray, dstPos: Int, size: Int): Int
fun arraycmp(src: FloatArray, srcPos: Int, dst: FloatArray, dstPos: Int, size: Int): Int
fun arraycmp(src: IntArray, srcPos: Int, dst: IntArray, dstPos: Int, size: Int): Int
fun arraycmp(src: LongArray, srcPos: Int, dst: LongArray, dstPos: Int, size: Int): Int
fun arraycmp(src: ShortArray, srcPos: Int, dst: ShortArray, dstPos: Int, size: Int): Int
fun <T : Comparable<T>> arraycmp(src: List<T>, srcPos: Int, dst: List<T>, dstPos: Int, size: Int): Int
Link copied to clipboard
fun arraycopy(src: Buffer, srcPos: Int, dst: Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Buffer, srcPos: Int, dst: ByteArray, dstPos: Int, size: Int)
fun arraycopy(src: Float32Buffer, srcPos: Int, dst: Float32Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Float32Buffer, srcPos: Int, dst: FloatArray, dstPos: Int, size: Int)
fun arraycopy(src: Float64Buffer, srcPos: Int, dst: Float64Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Float64Buffer, srcPos: Int, dst: DoubleArray, dstPos: Int, size: Int)
fun arraycopy(src: Int16Buffer, srcPos: Int, dst: Int16Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Int16Buffer, srcPos: Int, dst: ShortArray, dstPos: Int, size: Int)
fun arraycopy(src: Int32Buffer, srcPos: Int, dst: Int32Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Int32Buffer, srcPos: Int, dst: IntArray, dstPos: Int, size: Int)
fun arraycopy(src: Int64Buffer, srcPos: Int, dst: Int64Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Int64Buffer, srcPos: Int, dst: LongArray, dstPos: Int, size: Int)
fun arraycopy(src: Int8Buffer, srcPos: Int, dst: Int8Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Int8Buffer, srcPos: Int, dst: ByteArray, dstPos: Int, size: Int)
fun arraycopy(src: UByteArrayInt, srcPos: Int, dst: UByteArrayInt, dstPos: Int, size: Int)
fun arraycopy(src: UByteArrayInt, srcPos: Int, dst: Uint8Buffer, dstPos: Int, size: Int)
fun arraycopy(src: UShortArrayInt, srcPos: Int, dst: UShortArrayInt, dstPos: Int, size: Int)
fun arraycopy(src: UShortArrayInt, srcPos: Int, dst: Uint16Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Uint16Buffer, srcPos: Int, dst: UShortArrayInt, dstPos: Int, size: Int)
fun arraycopy(src: Uint16Buffer, srcPos: Int, dst: Uint16Buffer, dstPos: Int, size: Int)
fun arraycopy(src: Uint8Buffer, srcPos: Int, dst: UByteArrayInt, dstPos: Int, size: Int)
fun arraycopy(src: Uint8Buffer, srcPos: Int, dst: Uint8Buffer, dstPos: Int, size: Int)
fun arraycopy(src: ByteArray, srcPos: Int, dst: Buffer, dstPos: Int, size: Int)
fun arraycopy(src: ByteArray, srcPos: Int, dst: Int8Buffer, dstPos: Int, size: Int)
fun arraycopy(src: DoubleArray, srcPos: Int, dst: Float64Buffer, dstPos: Int, size: Int)
fun arraycopy(src: FloatArray, srcPos: Int, dst: Float32Buffer, dstPos: Int, size: Int)
fun arraycopy(src: IntArray, srcPos: Int, dst: Int32Buffer, dstPos: Int, size: Int)
fun arraycopy(src: LongArray, srcPos: Int, dst: Int64Buffer, dstPos: Int, size: Int)
fun arraycopy(src: ShortArray, srcPos: Int, dst: Int16Buffer, dstPos: Int, size: Int)
inline fun <T> arraycopy(size: Int, src: Any?, srcPos: Int, dst: Any?, dstPos: Int, setDst: (Int, T) -> Unit, getSrc: (Int) -> T)

fun <T> arraycopy(src: Array<out T>, srcPos: Int, dst: Array<out T>, dstPos: Int, size: Int)
fun arraycopy(src: BooleanArray, srcPos: Int, dst: BooleanArray, dstPos: Int, size: Int)
fun arraycopy(src: ByteArray, srcPos: Int, dst: ByteArray, dstPos: Int, size: Int)
fun arraycopy(src: CharArray, srcPos: Int, dst: CharArray, dstPos: Int, size: Int)
fun arraycopy(src: DoubleArray, srcPos: Int, dst: DoubleArray, dstPos: Int, size: Int)
fun arraycopy(src: FloatArray, srcPos: Int, dst: FloatArray, dstPos: Int, size: Int)
fun arraycopy(src: IntArray, srcPos: Int, dst: IntArray, dstPos: Int, size: Int)
fun arraycopy(src: LongArray, srcPos: Int, dst: LongArray, dstPos: Int, size: Int)
fun arraycopy(src: ShortArray, srcPos: Int, dst: ShortArray, dstPos: Int, size: Int)
fun <T> arraycopy(src: List<T>, srcPos: Int, dst: MutableList<T>, dstPos: Int, size: Int)

Copies size elements of src starting at srcPos into dst at dstPos

Link copied to clipboard
fun arraycopyStride(src: ByteArray, srcPos: Int, srcStride: Int, dst: ByteArray, dstPos: Int, dstStride: Int, size: Int)
fun arraycopyStride(src: FloatArray, srcPos: Int, srcStride: Int, dst: FloatArray, dstPos: Int, dstStride: Int, size: Int)
inline fun <T> arraycopyStride(src: (Int) -> T, srcPos: Int, srcStride: Int, dst: (Int, T) -> Unit, dstPos: Int, dstStride: Int, size: Int)
fun arraycopyStride(src: IntArray, srcPos: Int, srcStride: Int, dst: IntArray, dstPos: Int, dstStride: Int, size: Int)
fun arraycopyStride(src: ShortArray, srcPos: Int, srcStride: Int, dst: ShortArray, dstPos: Int, dstStride: Int, size: Int)
Link copied to clipboard
fun arrayequal(src: Buffer, srcPos: Int, dst: Buffer, dstPos: Int, size: Int): Boolean
fun <T> arrayequal(src: Array<T>, srcPos: Int, dst: Array<T>, dstPos: Int, size: Int): Boolean
fun arrayequal(src: BooleanArray, srcPos: Int, dst: BooleanArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: ByteArray, srcPos: Int, dst: ByteArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: CharArray, srcPos: Int, dst: CharArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: DoubleArray, srcPos: Int, dst: DoubleArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: FloatArray, srcPos: Int, dst: FloatArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: IntArray, srcPos: Int, dst: IntArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: LongArray, srcPos: Int, dst: LongArray, dstPos: Int, size: Int): Boolean
fun arrayequal(src: ShortArray, srcPos: Int, dst: ShortArray, dstPos: Int, size: Int): Boolean
fun <T> arrayequal(src: List<T>, srcPos: Int, dst: List<T>, dstPos: Int, size: Int): Boolean
Link copied to clipboard
fun arrayfill(array: Buffer, value: Int, start: Int = 0, end: Int = array.size)

fun <T> arrayfill(array: Array<T>, value: T, start: Int = 0, end: Int = array.size)
fun arrayfill(array: BooleanArray, value: Boolean, start: Int = 0, end: Int = array.size)
fun arrayfill(array: ByteArray, value: Byte, start: Int = 0, end: Int = array.size)
fun arrayfill(array: DoubleArray, value: Double, start: Int = 0, end: Int = array.size)
fun arrayfill(array: FloatArray, value: Float, start: Int = 0, end: Int = array.size)
fun arrayfill(array: IntArray, value: Int, start: Int = 0, end: Int = array.size)
fun arrayfill(array: LongArray, value: Long, start: Int = 0, end: Int = array.size)
fun arrayfill(array: ShortArray, value: Short, start: Int = 0, end: Int = array.size)

Fills the array with the value starting a start end ending at end (end is not inclusive)

Link copied to clipboard
fun arrayinterleave(out: ByteArray, outPos: Int, array1: ByteArray, array1Pos: Int, array2: ByteArray, array2Pos: Int, size: Int)
fun arrayinterleave(out: FloatArray, outPos: Int, array1: FloatArray, array1Pos: Int, array2: FloatArray, array2Pos: Int, size: Int)
fun arrayinterleave(out: IntArray, outPos: Int, array1: IntArray, array1Pos: Int, array2: IntArray, array2Pos: Int, size: Int)
fun arrayinterleave(out: ShortArray, outPos: Int, array1: ShortArray, array1Pos: Int, array2: ShortArray, array2Pos: Int, size: Int)
Link copied to clipboard

Gets the underlying array of this

fun ArrayBuffer.asByteArray(): ByteArray
Link copied to clipboard
fun ArrayBuffer.asDoubleArray(): DoubleArray
Link copied to clipboard
fun ArrayBuffer.asFloat32Array(): Float32Array
fun ArrayBuffer.asFloat32Array(): Float32Array
Link copied to clipboard
fun ArrayBuffer.asFloat64Array(): Float64Array
fun ArrayBuffer.asFloat64Array(): Float64Array
Link copied to clipboard

Creates a view of this reinterpreted as Float

fun ArrayBuffer.asFloatArray(): FloatArray
Link copied to clipboard
Link copied to clipboard
fun ArrayBuffer.asInt16Array(): Int16Array
fun ArrayBuffer.asInt16Array(): Int16Array
Link copied to clipboard
Link copied to clipboard
fun ArrayBuffer.asInt32Array(): Int32Array
fun ArrayBuffer.asInt32Array(): Int32Array
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ArrayBuffer.asInt8Array(): Int8Array
fun ArrayBuffer.asInt8Array(): Int8Array
Link copied to clipboard

Gets the underlying array of this

fun ArrayBuffer.asIntArray(): IntArray
Link copied to clipboard

Gets the underlying array of this

fun ArrayBuffer.asShortArray(): ShortArray
Link copied to clipboard
fun ArrayBuffer.asUByteArray(): UByteArray
Link copied to clipboard

Creates a view of this reinterpreted as Int

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ArrayBuffer.asUint8Array(): Uint8Array
fun ArrayBuffer.asUint8Array(): Uint8Array
Link copied to clipboard
fun ArrayBuffer.asUint8ClampedArray(): Uint8ClampedArray
fun ArrayBuffer.asUint8ClampedArray(): Uint8ClampedArray
Link copied to clipboard

Creates a view of this reinterpreted as Int

Link copied to clipboard
inline fun <T> BufferTemp(size: Int, callback: (Buffer) -> T): T
Link copied to clipboard
Link copied to clipboard
fun Buffer.clone(direct: Boolean = false): Buffer
Link copied to clipboard
fun Buffer.copyOf(newSize: Int): Buffer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Buffer.getArrayFloat32(index: Int, out: FloatArray, offset: Int = 0, size: Int = out.size - offset): FloatArray
Link copied to clipboard
fun Buffer.getArrayFloat64(index: Int, out: DoubleArray, offset: Int = 0, size: Int = out.size - offset): DoubleArray
Link copied to clipboard
fun Buffer.getArrayInt16(index: Int, out: ShortArray, offset: Int = 0, size: Int = out.size - offset): ShortArray
Link copied to clipboard
fun Buffer.getArrayInt32(index: Int, out: IntArray, offset: Int = 0, size: Int = out.size - offset): IntArray
Link copied to clipboard
fun Buffer.getArrayInt64(index: Int, out: LongArray, offset: Int = 0, size: Int = out.size - offset): LongArray
Link copied to clipboard
fun Buffer.getArrayInt8(index: Int, out: ByteArray, offset: Int = 0, size: Int = out.size - offset): ByteArray
Link copied to clipboard
fun Buffer.getArrayUInt16(index: Int, out: UShortArrayInt, offset: Int = 0, size: Int = out.size - offset): UShortArrayInt
Link copied to clipboard
fun Buffer.getArrayUInt8(index: Int, out: UByteArrayInt, offset: Int = 0, size: Int = out.size - offset): UByteArrayInt
Link copied to clipboard
inline fun Buffer.getF32(byteOffset: Int, littleEndian: Boolean = true): Float
fun ByteArray.getF32(offset: Int, littleEndian: Boolean): Float
Link copied to clipboard
fun Buffer.getF32Array(byteOffset: Int, size: Int, littleEndian: Boolean = true): FloatArray
fun ByteArray.getF32Array(offset: Int, count: Int, littleEndian: Boolean): FloatArray
fun Buffer.getF32Array(byteOffset: Int, out: FloatArray, start: Int = 0, size: Int = out.size - start, littleEndian: Boolean = true): FloatArray
Link copied to clipboard
fun Buffer.getF32ArrayBE(byteOffset: Int, size: Int): FloatArray
fun ByteArray.getF32ArrayBE(offset: Int, count: Int): FloatArray
fun Buffer.getF32ArrayBE(byteOffset: Int, out: FloatArray, start: Int = 0, size: Int = out.size - start): FloatArray
Link copied to clipboard
fun Buffer.getF32ArrayLE(byteOffset: Int, size: Int): FloatArray
fun ByteArray.getF32ArrayLE(offset: Int, count: Int): FloatArray
fun Buffer.getF32ArrayLE(byteOffset: Int, out: FloatArray, start: Int = 0, size: Int = out.size - start): FloatArray
Link copied to clipboard
fun ByteArray.getF32BE(offset: Int): Float
Link copied to clipboard
fun ByteArray.getF32LE(offset: Int): Float
Link copied to clipboard
inline fun Buffer.getF64(byteOffset: Int, littleEndian: Boolean = true): Double
fun ByteArray.getF64(offset: Int, littleEndian: Boolean): Double
Link copied to clipboard
fun Buffer.getF64Array(byteOffset: Int, size: Int, littleEndian: Boolean = true): DoubleArray
fun ByteArray.getF64Array(offset: Int, count: Int, littleEndian: Boolean): DoubleArray
fun Buffer.getF64Array(byteOffset: Int, out: DoubleArray, start: Int = 0, size: Int = out.size - start, littleEndian: Boolean = true): DoubleArray
Link copied to clipboard
fun Buffer.getF64ArrayBE(byteOffset: Int, size: Int): DoubleArray
fun ByteArray.getF64ArrayBE(offset: Int, count: Int): DoubleArray
fun Buffer.getF64ArrayBE(byteOffset: Int, out: DoubleArray, start: Int = 0, size: Int = out.size - start): DoubleArray
Link copied to clipboard
fun Buffer.getF64ArrayLE(byteOffset: Int, size: Int): DoubleArray
fun ByteArray.getF64ArrayLE(offset: Int, count: Int): DoubleArray
fun Buffer.getF64ArrayLE(byteOffset: Int, out: DoubleArray, start: Int = 0, size: Int = out.size - start): DoubleArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Buffer.getFloat32(index: Int): Float
Link copied to clipboard
Link copied to clipboard
fun Buffer.getInt16(index: Int): Short
Link copied to clipboard
fun Buffer.getInt32(index: Int): Int
Link copied to clipboard
fun Buffer.getInt64(index: Int): Long
Link copied to clipboard
fun Buffer.getInt8(index: Int): Byte
Link copied to clipboard
inline fun Buffer.getS16(byteOffset: Int, littleEndian: Boolean = true): Short
fun ByteArray.getS16(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun Buffer.getS16Array(byteOffset: Int, size: Int, littleEndian: Boolean = true): ShortArray
fun ByteArray.getS16Array(offset: Int, count: Int, littleEndian: Boolean): ShortArray
fun Buffer.getS16Array(byteOffset: Int, out: ShortArray, start: Int = 0, size: Int = out.size - start, littleEndian: Boolean = true): ShortArray
Link copied to clipboard
fun Buffer.getS16ArrayBE(byteOffset: Int, size: Int): ShortArray
fun ByteArray.getS16ArrayBE(offset: Int, count: Int): ShortArray
fun Buffer.getS16ArrayBE(byteOffset: Int, out: ShortArray, start: Int = 0, size: Int = out.size - start): ShortArray
Link copied to clipboard
fun Buffer.getS16ArrayLE(byteOffset: Int, size: Int): ShortArray
fun ByteArray.getS16ArrayLE(offset: Int, count: Int): ShortArray
fun Buffer.getS16ArrayLE(byteOffset: Int, out: ShortArray, start: Int = 0, size: Int = out.size - start): ShortArray
Link copied to clipboard
fun ByteArray.getS16BE(offset: Int): Int
Link copied to clipboard
fun ByteArray.getS16LE(offset: Int): Int
Link copied to clipboard
fun ByteArray.getS24(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun ByteArray.getS24BE(offset: Int): Int
Link copied to clipboard
fun ByteArray.getS24LE(offset: Int): Int
Link copied to clipboard
inline fun Buffer.getS32(byteOffset: Int, littleEndian: Boolean = true): Int
fun ByteArray.getS32(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun Buffer.getS32Array(byteOffset: Int, size: Int, littleEndian: Boolean = true): IntArray
fun ByteArray.getS32Array(offset: Int, count: Int, littleEndian: Boolean): IntArray
fun Buffer.getS32Array(byteOffset: Int, out: IntArray, start: Int = 0, size: Int = out.size - start, littleEndian: Boolean = true): IntArray
Link copied to clipboard
fun Buffer.getS32ArrayBE(byteOffset: Int, size: Int): IntArray
fun ByteArray.getS32ArrayBE(offset: Int, count: Int): IntArray
fun Buffer.getS32ArrayBE(byteOffset: Int, out: IntArray, start: Int = 0, size: Int = out.size - start): IntArray
Link copied to clipboard
fun Buffer.getS32ArrayLE(byteOffset: Int, size: Int): IntArray
fun ByteArray.getS32ArrayLE(offset: Int, count: Int): IntArray
fun Buffer.getS32ArrayLE(byteOffset: Int, out: IntArray, start: Int = 0, size: Int = out.size - start): IntArray
Link copied to clipboard
fun ByteArray.getS32BE(offset: Int): Int
Link copied to clipboard
fun ByteArray.getS32LE(offset: Int): Int
Link copied to clipboard
inline fun Buffer.getS64(byteOffset: Int, littleEndian: Boolean = true): Long
fun ByteArray.getS64(offset: Int, littleEndian: Boolean): Long
Link copied to clipboard
fun Buffer.getS64Array(byteOffset: Int, size: Int, littleEndian: Boolean = true): LongArray
fun ByteArray.getS64Array(offset: Int, count: Int, littleEndian: Boolean): LongArray
fun Buffer.getS64Array(byteOffset: Int, out: LongArray, start: Int = 0, size: Int = out.size - start, littleEndian: Boolean = true): LongArray
Link copied to clipboard
fun Buffer.getS64ArrayBE(byteOffset: Int, size: Int): LongArray
fun ByteArray.getS64ArrayBE(offset: Int, count: Int): LongArray
fun Buffer.getS64ArrayBE(byteOffset: Int, out: LongArray, start: Int = 0, size: Int = out.size - start): LongArray
Link copied to clipboard
fun Buffer.getS64ArrayLE(byteOffset: Int, size: Int): LongArray
fun ByteArray.getS64ArrayLE(offset: Int, count: Int): LongArray
fun Buffer.getS64ArrayLE(byteOffset: Int, out: LongArray, start: Int = 0, size: Int = out.size - start): LongArray
Link copied to clipboard
fun ByteArray.getS64BE(offset: Int): Long
Link copied to clipboard
fun ByteArray.getS64LE(offset: Int): Long
Link copied to clipboard
fun ByteArray.getS8(offset: Int): Int
Link copied to clipboard
fun Buffer.getS8Array(byteOffset: Int, size: Int): ByteArray
fun ByteArray.getS8Array(offset: Int, count: Int): ByteArray
fun Buffer.getS8Array(byteOffset: Int, out: ByteArray, start: Int = 0, size: Int = out.size - start): ByteArray
Link copied to clipboard
inline fun <T> getSampledGeneric(index: Float, get: (Int) -> T, scale: (T, Float) -> Float, convert: (Float) -> T, unit: Unit = Unit): T
Link copied to clipboard
inline fun Buffer.getU16(byteOffset: Int, littleEndian: Boolean = true): Int
fun ByteArray.getU16(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun ByteArray.getU16Array(offset: Int, count: Int, littleEndian: Boolean): CharArray
Link copied to clipboard
fun ByteArray.getU16ArrayBE(offset: Int, count: Int): CharArray
Link copied to clipboard
fun ByteArray.getU16ArrayLE(offset: Int, count: Int): CharArray
Link copied to clipboard
fun Buffer.getU16BE(byteOffset: Int): Int
fun ByteArray.getU16BE(offset: Int): Int
Link copied to clipboard
fun Buffer.getU16LE(byteOffset: Int): Int
fun ByteArray.getU16LE(offset: Int): Int
Link copied to clipboard
fun ByteArray.getU24(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun ByteArray.getU24BE(offset: Int): Int
Link copied to clipboard
fun ByteArray.getU24LE(offset: Int): Int
Link copied to clipboard
inline fun Buffer.getU32(byteOffset: Int, littleEndian: Boolean = true): Long
fun ByteArray.getU32(offset: Int, littleEndian: Boolean): Long
Link copied to clipboard
fun Buffer.getU32BE(byteOffset: Int): Long
fun ByteArray.getU32BE(offset: Int): Long
Link copied to clipboard
fun Buffer.getU32LE(byteOffset: Int): Long
fun ByteArray.getU32LE(offset: Int): Long
Link copied to clipboard
fun Buffer.getU8(byteOffset: Int): Int
fun ByteArray.getU8(offset: Int): Int
inline fun Buffer.getU8(byteOffset: Int, littleEndian: Boolean = true): Int
Link copied to clipboard
fun Buffer.getUInt16(index: Int): Int
Link copied to clipboard
fun Buffer.getUInt8(index: Int): Int
Link copied to clipboard
fun Buffer.getUnalignedArrayFloat32(byteOffset: Int, out: FloatArray, offset: Int = 0, size: Int = out.size - offset): FloatArray
Link copied to clipboard
fun Buffer.getUnalignedArrayFloat64(byteOffset: Int, out: DoubleArray, offset: Int = 0, size: Int = out.size - offset): DoubleArray
Link copied to clipboard
fun Buffer.getUnalignedArrayInt16(byteOffset: Int, out: ShortArray, offset: Int = 0, size: Int = out.size - offset): ShortArray
Link copied to clipboard
fun Buffer.getUnalignedArrayInt32(byteOffset: Int, out: IntArray, offset: Int = 0, size: Int = out.size - offset): IntArray
Link copied to clipboard
fun Buffer.getUnalignedArrayInt64(byteOffset: Int, out: LongArray, offset: Int = 0, size: Int = out.size - offset): LongArray
Link copied to clipboard
fun Buffer.getUnalignedArrayInt8(byteOffset: Int, out: ByteArray, offset: Int = 0, size: Int = out.size - offset): ByteArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Buffer.getUnalignedInt16(byteOffset: Int): Short
Link copied to clipboard
fun Buffer.getUnalignedInt32(byteOffset: Int): Int
Link copied to clipboard
fun Buffer.getUnalignedInt64(byteOffset: Int): Long
Link copied to clipboard
fun Buffer.getUnalignedInt8(byteOffset: Int): Byte
Link copied to clipboard
fun Buffer.getUnalignedUInt16(byteOffset: Int): Int
Link copied to clipboard
fun Buffer.getUnalignedUInt8(byteOffset: Int): Int
Link copied to clipboard
Link copied to clipboard
fun <T> Array<T>.indexOf(sub: Array<T>, starting: Int = 0): Int
fun BooleanArray.indexOf(sub: BooleanArray, starting: Int = 0): Int
fun ByteArray.indexOf(sub: ByteArray, starting: Int = 0): Int
fun CharArray.indexOf(sub: CharArray, starting: Int = 0): Int
fun DoubleArray.indexOf(sub: DoubleArray, starting: Int = 0): Int
fun FloatArray.indexOf(sub: FloatArray, starting: Int = 0): Int
fun IntArray.indexOf(sub: IntArray, starting: Int = 0): Int
fun LongArray.indexOf(sub: LongArray, starting: Int = 0): Int
fun ShortArray.indexOf(sub: ShortArray, starting: Int = 0): Int
Link copied to clipboard
fun <T> Array<T>.lastIndexOf(sub: Array<T>, starting: Int = 0): Int
fun BooleanArray.lastIndexOf(sub: BooleanArray, starting: Int = 0): Int
fun ByteArray.lastIndexOf(sub: ByteArray, starting: Int = 0): Int
fun CharArray.lastIndexOf(sub: CharArray, starting: Int = 0): Int
fun DoubleArray.lastIndexOf(sub: DoubleArray, starting: Int = 0): Int
fun FloatArray.lastIndexOf(sub: FloatArray, starting: Int = 0): Int
fun IntArray.lastIndexOf(sub: IntArray, starting: Int = 0): Int
fun LongArray.lastIndexOf(sub: LongArray, starting: Int = 0): Int
fun ShortArray.lastIndexOf(sub: ShortArray, starting: Int = 0): Int
Link copied to clipboard
fun Buffer.limitSafe(newLimit: Int)
fun Buffer.limitSafe(newLimit: Int)
Link copied to clipboard
fun Buffer.positionSafe(newPosition: Int)
fun Buffer.positionSafe(newPosition: Int)
Link copied to clipboard
fun <T> ByteArray.read(offset: Int = 0, size: Int = this.size, callback: ByteArrayReader.() -> T): T
Link copied to clipboard
fun <T> ByteArray.readBE(offset: Int = 0, size: Int = this.size, callback: ByteArrayReaderBE.() -> T): T
Link copied to clipboard
fun ByteArray.reader(offset: Int = 0, size: Int = this.size): ByteArrayReader
Link copied to clipboard
fun ByteArray.readerBE(offset: Int = 0, size: Int = this.size): ByteArrayReaderBE
Link copied to clipboard
fun ByteArray.readerLE(offset: Int = 0, size: Int = this.size): ByteArrayReaderLE
Link copied to clipboard
fun <T> ByteArray.readLE(offset: Int = 0, size: Int = this.size, callback: ByteArrayReaderLE.() -> T): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Buffer.set16(byteOffset: Int, value: Short, littleEndian: Boolean = true)
fun ByteArray.set16(offset: Int, value: Int, littleEndian: Boolean)
Link copied to clipboard
fun ByteArray.set16BE(offset: Int, value: Int)
Link copied to clipboard
fun Buffer.set16BEClamped(byteOffset: Int, value: Int)
Link copied to clipboard
inline fun Buffer.set16Clamped(byteOffset: Int, value: Int, littleEndian: Boolean = true)
Link copied to clipboard
fun ByteArray.set16LE(offset: Int, value: Int)
Link copied to clipboard
fun Buffer.set16LEClamped(byteOffset: Int, value: Int)
Link copied to clipboard
fun ByteArray.set24(offset: Int, value: Int, littleEndian: Boolean)
Link copied to clipboard
fun ByteArray.set24BE(offset: Int, value: Int)
Link copied to clipboard
fun ByteArray.set24LE(offset: Int, value: Int)
Link copied to clipboard
inline fun Buffer.set32(byteOffset: Int, value: Int, littleEndian: Boolean = true)
fun ByteArray.set32(offset: Int, value: Int, littleEndian: Boolean)
Link copied to clipboard
fun ByteArray.set32BE(offset: Int, value: Int)
fun ByteArray.set32BE(offset: Int, value: Long)
Link copied to clipboard
fun ByteArray.set32LE(offset: Int, value: Int)
fun ByteArray.set32LE(offset: Int, value: Long)
Link copied to clipboard
inline fun Buffer.set64(byteOffset: Int, value: Long, littleEndian: Boolean = true)
fun ByteArray.set64(offset: Int, value: Long, littleEndian: Boolean)
Link copied to clipboard
fun ByteArray.set64BE(offset: Int, value: Long)
Link copied to clipboard
fun ByteArray.set64LE(offset: Int, value: Long)
Link copied to clipboard
fun ByteArray.set8(offset: Int, value: Int)
fun ByteArray.set8(offset: Int, value: Long)
Link copied to clipboard
fun Buffer.set8Clamped(byteOffset: Int, value: Int)
Link copied to clipboard
fun ByteArray.setArray(offset: Int, bytes: ByteArray)
fun Buffer.setArray(byteOffset: Int, data: ByteArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArray(byteOffset: Int, data: DoubleArray, start: Int = 0, size: Int = data.size - start, littleEndian: Boolean = true)
fun Buffer.setArray(byteOffset: Int, data: FloatArray, start: Int = 0, size: Int = data.size - start, littleEndian: Boolean = true)
fun Buffer.setArray(byteOffset: Int, data: IntArray, start: Int = 0, size: Int = data.size - start, littleEndian: Boolean = true)
fun Buffer.setArray(byteOffset: Int, data: LongArray, start: Int = 0, size: Int = data.size - start, littleEndian: Boolean = true)
fun Buffer.setArray(byteOffset: Int, data: ShortArray, start: Int = 0, size: Int = data.size - start, littleEndian: Boolean = true)
Link copied to clipboard
fun ByteArray.setArrayBE(offset: Int, array: CharArray)
fun ByteArray.setArrayBE(offset: Int, array: DoubleArray)
fun ByteArray.setArrayBE(offset: Int, array: FloatArray)
fun ByteArray.setArrayBE(offset: Int, array: IntArray)
fun ByteArray.setArrayBE(offset: Int, array: LongArray)
fun ByteArray.setArrayBE(offset: Int, array: ShortArray)
fun Buffer.setArrayBE(byteOffset: Int, data: DoubleArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayBE(byteOffset: Int, data: FloatArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayBE(byteOffset: Int, data: IntArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayBE(byteOffset: Int, data: LongArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayBE(byteOffset: Int, data: ShortArray, start: Int = 0, size: Int = data.size - start)
Link copied to clipboard
fun Buffer.setArrayFloat32(index: Int, inp: FloatArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setArrayFloat64(index: Int, inp: DoubleArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setArrayInt16(index: Int, inp: ShortArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setArrayInt32(index: Int, inp: IntArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setArrayInt64(index: Int, inp: LongArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setArrayInt8(index: Int, inp: ByteArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun ByteArray.setArrayLE(offset: Int, array: CharArray)
fun ByteArray.setArrayLE(offset: Int, array: DoubleArray)
fun ByteArray.setArrayLE(offset: Int, array: FloatArray)
fun ByteArray.setArrayLE(offset: Int, array: IntArray)
fun ByteArray.setArrayLE(offset: Int, array: LongArray)
fun ByteArray.setArrayLE(offset: Int, array: ShortArray)
fun Buffer.setArrayLE(byteOffset: Int, data: DoubleArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayLE(byteOffset: Int, data: FloatArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayLE(byteOffset: Int, data: IntArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayLE(byteOffset: Int, data: LongArray, start: Int = 0, size: Int = data.size - start)
fun Buffer.setArrayLE(byteOffset: Int, data: ShortArray, start: Int = 0, size: Int = data.size - start)
Link copied to clipboard
fun Buffer.setArrayUInt16(index: Int, inp: UShortArrayInt, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setArrayUInt8(index: Int, inp: UByteArrayInt, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun ByteArray.setBytes(offset: Int, bytes: ByteArray)
Link copied to clipboard
inline fun Buffer.setF32(byteOffset: Int, value: Float, littleEndian: Boolean = true)
fun ByteArray.setF32(offset: Int, value: Float, littleEndian: Boolean)
Link copied to clipboard
fun ByteArray.setF32BE(offset: Int, value: Float)
Link copied to clipboard
fun ByteArray.setF32LE(offset: Int, value: Float)
Link copied to clipboard
inline fun Buffer.setF64(byteOffset: Int, value: Double, littleEndian: Boolean = true)
fun ByteArray.setF64(offset: Int, value: Double, littleEndian: Boolean)
Link copied to clipboard
fun ByteArray.setF64BE(offset: Int, value: Double)
Link copied to clipboard
fun ByteArray.setF64LE(offset: Int, value: Double)
Link copied to clipboard
fun Buffer.setFloat32(index: Int, value: Float)
Link copied to clipboard
fun Buffer.setFloat64(index: Int, value: Double)
Link copied to clipboard
fun Buffer.setInt16(index: Int, value: Short)
Link copied to clipboard
fun Buffer.setInt32(index: Int, value: Int)
Link copied to clipboard
fun Buffer.setInt64(index: Int, value: Long)
Link copied to clipboard
fun Buffer.setInt8(index: Int, value: Byte)
fun Buffer.setInt8(index: Int, value: Int)
Link copied to clipboard
fun Buffer.setUInt16(index: Int, value: Int)
Link copied to clipboard
fun Buffer.setUInt8(index: Int, value: Int)
Link copied to clipboard
fun Buffer.setUInt8Clamped(index: Int, value: Int)
Link copied to clipboard
fun Buffer.setUnalignedArrayFloat32(byteOffset: Int, inp: FloatArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setUnalignedArrayFloat64(byteOffset: Int, inp: DoubleArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setUnalignedArrayInt16(byteOffset: Int, inp: ShortArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setUnalignedArrayInt32(byteOffset: Int, inp: IntArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setUnalignedArrayInt64(byteOffset: Int, inp: LongArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setUnalignedArrayInt8(byteOffset: Int, inp: ByteArray, offset: Int = 0, size: Int = inp.size - offset)
Link copied to clipboard
fun Buffer.setUnalignedFloat32(byteOffset: Int, value: Float)
Link copied to clipboard
fun Buffer.setUnalignedFloat64(byteOffset: Int, value: Double)
Link copied to clipboard
fun Buffer.setUnalignedInt16(byteOffset: Int, value: Short)
Link copied to clipboard
fun Buffer.setUnalignedInt32(byteOffset: Int, value: Int)
Link copied to clipboard
fun Buffer.setUnalignedInt64(byteOffset: Int, value: Long)
Link copied to clipboard
fun Buffer.setUnalignedInt8(byteOffset: Int, value: Byte)
fun Buffer.setUnalignedInt8(byteOffset: Int, value: Int)
Link copied to clipboard
fun Buffer.setUnalignedUInt16(byteOffset: Int, value: Int)
Link copied to clipboard
fun Buffer.setUnalignedUInt8(byteOffset: Int, value: Int)
Link copied to clipboard
fun Buffer.setUnalignedUInt8Clamped(byteOffset: Int, value: Int)
Link copied to clipboard
fun ByteBuffer.sliceBuffer(offset: Int, size: Int): ByteBuffer
fun IntBuffer.sliceBuffer(offset: Int, size: Int): IntBuffer
inline fun <T : Buffer> T.sliceBuffer(offset: Int, size: Int, dup: (T) -> T): T
fun Buffer.sliceBuffer(start: Int = 0, end: Int = sizeInBytes): Buffer
fun ByteBuffer.sliceBuffer(offset: Int, size: Int): ByteBuffer
fun IntBuffer.sliceBuffer(offset: Int, size: Int): IntBuffer
inline fun <T : Buffer> T.sliceBuffer(offset: Int, size: Int, dup: (T) -> T): T
Link copied to clipboard
fun Buffer.sliceWithSize(start: Int, size: Int): Buffer
Link copied to clipboard
fun ArrayBuffer.toByteArray(): ByteArray
Link copied to clipboard
fun ArrayBuffer.toDoubleArray(): DoubleArray
Link copied to clipboard
fun ArrayBuffer.toFloatArray(): FloatArray
Link copied to clipboard
fun ArrayBuffer.toIntArray(): IntArray
Link copied to clipboard
Link copied to clipboard
fun ArrayBuffer.toShortArray(): ShortArray
Link copied to clipboard
fun ArrayBuffer.toUByteArray(): UByteArray
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ubyteArrayIntOf(vararg values: Int): UByteArrayInt
Link copied to clipboard
fun ushortArrayIntOf(vararg values: Int): UShortArrayInt