set

abstract fun set(dstIndex: Int, src: ByteArray, srcStart: Int = 0, srcLength: Int = src.size)
abstract operator fun set(dstIndex: Int, src: ReadBuffer, srcStart: Int = 0, srcLength: Int)

Write an array of bytes into the buffer.

Parameters

dstIndex

initial position where src will be copied into.

src

the data to be copied.

srcStart

initial position on src that will be copied.

srcLength

amount of bytes to be copied


abstract operator fun set(index: Int, value: Boolean)

Write Boolean into a given position index on the buffer. Booleans as stored as single byte.

Parameters

index

position of the element in buffer


abstract operator fun set(index: Int, value: Byte)

Write Byte into a given position index on the buffer.

Parameters

index

position of the element in the buffer


abstract operator fun set(index: Int, value: UByte)

Write UByte into a given position index on the buffer.

Parameters

index

position of the element in the buffer


abstract fun set(index: Int, value: Short)

Short

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: UShort)

Write UShort into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: Int)

Write Int into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: UInt)

Write UInt into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: Long)

Write Long into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: ULong)

Write ULong into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: Float)

Write Float into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer


abstract fun set(index: Int, value: Double)

Write Double into a given position index on the buffer.

Parameters

index

position of the element in ReadBuffer