ByteBufferImpl

class ByteBufferImpl(buffer: <Error class: unknown class>) : GenericBuffer<<Error class: unknown class>> , ByteBuffer

ByteBuffer implementation.

Constructors

Link copied to clipboard
fun ByteBufferImpl(capacity: Int)
Link copied to clipboard
Link copied to clipboard
fun ByteBufferImpl(data: ByteArray, isBigEndian: Boolean)
Link copied to clipboard
fun ByteBufferImpl(buffer: <Error class: unknown class>)

Types

Link copied to clipboard
object Companion

Functions

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

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

Link copied to clipboard
open override fun getShort(offset: Int): Short
Link copied to clipboard
open override fun getString(offset: Int, length: Int): String
Link copied to clipboard
open override fun getUByte(offset: Int): Byte
Link copied to clipboard
open override fun getUByteArray(startOffset: Int, endOffset: Int): ByteArray
Link copied to clipboard
open override fun getUInt(offset: Int): Int
Link copied to clipboard
open override 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
open fun putFloat(data: FloatArray): ByteBuffer
open override fun putFloat(data: FloatBuffer): ByteBuffer
open override fun putFloat(value: Float): ByteBuffer
open override fun putFloat(data: FloatArray, offset: Int, len: Int): ByteBuffer
open override 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
open fun putUByte(data: ByteArray): ByteBuffer
open override fun putUByte(data: ByteBuffer): ByteBuffer
open override fun putUByte(value: Byte): ByteBuffer
open override fun putUByte(data: ByteArray, offset: Int, len: Int): ByteBuffer
open override fun putUByte(data: ByteArray, offset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
open fun putUInt(data: IntArray): ByteBuffer
open override fun putUInt(data: IntBuffer): ByteBuffer
open override fun putUInt(value: Int): ByteBuffer
open override fun putUInt(offset: Int, value: Int): ByteBuffer
open override fun putUInt(data: IntArray, offset: Int, len: Int): ByteBuffer
open override fun putUInt(data: IntArray, srcOffset: Int, dstOffset: Int, len: Int): ByteBuffer
Link copied to clipboard
open override fun putUShort(data: ShortBuffer): ByteBuffer
open override fun putUShort(value: Short): ByteBuffer
open override fun putUShort(data: ShortArray, offset: Int, len: Int): ByteBuffer
open override 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
open operator override fun set(i: Int, value: Byte)
open operator override fun set(i: Int, value: Float)
open operator override fun set(i: Int, value: Int)
open operator override fun set(i: Int, value: Short)
Link copied to clipboard
open fun toArray(): ByteArray

Properties

Link copied to clipboard
val buffer: <Error class: unknown class>
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
open override val readByte: Byte
Link copied to clipboard
open override val readFloat: Float
Link copied to clipboard
open override val readInt: Int
Link copied to clipboard
open override val readShort: Short
Link copied to clipboard
open override val readUByte: Byte
Link copied to clipboard
open override val readUInt: Int
Link copied to clipboard
open override val readUShort: Short
Link copied to clipboard
abstract val remaining: Int