ByteBuffer

interface ByteBuffer : Buffer

A Byte buffer for mixed types. All buffer positions are in bytes.

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun flip()
Link copied to clipboard
abstract operator fun get(i: Int): Byte
Link copied to clipboard
abstract fun getByte(offset: Int): Byte
Link copied to clipboard
abstract fun getByteArray(startOffset: Int, endOffset: Int): ByteArray
Link copied to clipboard
abstract fun getFloat(offset: Int): Float
Link copied to clipboard
abstract fun getInt(offset: Int): Int
Link copied to clipboard
abstract fun getOffset(offset: Int, offSize: Int): Int

Offsets are 1 to 4 bytes in length, depending on the offSize param.

Link copied to clipboard
abstract fun getShort(offset: Int): Short
Link copied to clipboard
abstract fun getString(offset: Int, length: Int): String
Link copied to clipboard
abstract fun getUByte(offset: Int): Byte
Link copied to clipboard
abstract fun getUByteArray(startOffset: Int, endOffset: Int): ByteArray
Link copied to clipboard
abstract fun getUInt(offset: Int): Int
Link copied to clipboard
abstract fun getUShort(offset: Int): Short
Link copied to clipboard
open operator fun plusAssign(value: Byte)
open operator fun plusAssign(value: Float)
open operator fun plusAssign(value: Int)
open operator fun plusAssign(value: Short)
Link copied to clipboard
open fun putByte(data: ByteBuffer): ByteBuffer
open fun putByte(value: Byte): ByteBuffer
open fun putByte(data: ByteArray): ByteBuffer
open fun putByte(data: ByteArray, offset: Int, len: Int): ByteBuffer
open fun putByte(data: ByteArray, offset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
abstract fun putFloat(data: FloatBuffer): ByteBuffer
abstract fun putFloat(value: Float): ByteBuffer
open fun putFloat(data: FloatArray): ByteBuffer
abstract fun putFloat(data: FloatArray, offset: Int, len: Int): ByteBuffer
abstract fun putFloat(data: FloatArray, offset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
open fun putInt(data: IntBuffer): ByteBuffer
open fun putInt(value: Int): ByteBuffer
open fun putInt(data: IntArray): ByteBuffer
open fun putInt(offset: Int, value: Int): ByteBuffer
open fun putInt(data: IntArray, offset: Int, len: Int): ByteBuffer
open fun putInt(data: IntArray, srcOffset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
open fun putShort(value: Short): ByteBuffer
open fun putShort(data: ShortArray): ByteBuffer
open fun putShort(data: ShortArray, offset: Int, len: Int): ByteBuffer
open fun putShort(data: ShortArray, offset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
abstract fun putUByte(data: ByteBuffer): ByteBuffer
abstract fun putUByte(value: Byte): ByteBuffer
open fun putUByte(data: ByteArray): ByteBuffer
abstract fun putUByte(data: ByteArray, offset: Int, len: Int): ByteBuffer
abstract fun putUByte(data: ByteArray, offset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
abstract fun putUInt(data: IntBuffer): ByteBuffer
abstract fun putUInt(value: Int): ByteBuffer
open fun putUInt(data: IntArray): ByteBuffer
abstract fun putUInt(offset: Int, value: Int): ByteBuffer
abstract fun putUInt(data: IntArray, offset: Int, len: Int): ByteBuffer
abstract fun putUInt(data: IntArray, srcOffset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
abstract fun putUShort(data: ShortBuffer): ByteBuffer
abstract fun putUShort(value: Short): ByteBuffer
abstract fun putUShort(data: ShortArray, offset: Int, len: Int): ByteBuffer
abstract fun putUShort(data: ShortArray, offset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
open override fun removeAt(index: Int)
Link copied to clipboard
abstract operator fun set(i: Int, value: Byte)
abstract operator fun set(i: Int, value: Float)
abstract operator fun set(i: Int, value: Int)
abstract operator fun set(i: Int, value: Short)
Link copied to clipboard
open fun toArray(): ByteArray

Properties

Link copied to clipboard
abstract val capacity: Int
Link copied to clipboard
abstract var dirty: Boolean
Link copied to clipboard
abstract var limit: Int
Link copied to clipboard
abstract var position: Int
Link copied to clipboard
abstract val readByte: Byte
Link copied to clipboard
abstract val readFloat: Float
Link copied to clipboard
abstract val readInt: Int
Link copied to clipboard
abstract val readShort: Short
Link copied to clipboard
abstract val readUByte: Byte
Link copied to clipboard
abstract val readUInt: Int
Link copied to clipboard
abstract val readUShort: Short
Link copied to clipboard
abstract val remaining: Int

Inheritors

Link copied to clipboard