put

open override fun put(value: Boolean)

Put a Boolean into the buffer at writePosition . Booleans as stored as single byte. Write position will be incremented.

Return

Boolean element


open override fun put(value: ByteArray, start: Int, length: Int)

Put an array of bytes into the buffer at writePosition. Write position will be incremented.

Parameters

value

the data to be copied

start

initial position on value to be copied

length

amount of bytes to be copied


open override fun put(value: ReadBuffer, start: Int, length: Int)

Put an array of bytes into the buffer at writePosition. Write position will be incremented.

Parameters

value

ReadBuffer the data to be copied

start

initial position on value to be copied

length

amount of bytes to be copied


open override fun put(value: Byte)

Write a Byte into the buffer at writePosition. Write position will be incremented.


open override fun put(value: UByte)

Write a UByte into the buffer at writePosition. Write position will be incremented.


open override fun put(value: Short)

Write a Short into in the buffer at writePosition. Write position will be incremented.


open override fun put(value: UShort)

Write a UShort into in the buffer at writePosition. Write position will be incremented.


open override fun put(value: Int)

Write a Int in the buffer at writePosition. Write position will be incremented.


open override fun put(value: UInt)

Write a UInt into in the buffer at writePosition. Write position will be incremented.


open override fun put(value: Long)

Write a Long into in the buffer at writePosition. Write position will be incremented.


open override fun put(value: ULong)

Write a ULong into in the buffer at writePosition. Write position will be incremented.


open override fun put(value: Float)

Write a 32-bit Float into the buffer at writePosition. Write position will be incremented.


open override fun put(value: Double)

Write a 64-bit Double into the buffer at writePosition. Write position will be incremented.


open override fun put(value: CharSequence, encodedLength: Int): Int

Write a String encoded as UTF-8 into the buffer at writePosition. Write position will be incremented.

Return

size in bytes of the encoded string