put

fun put(value: Boolean)

Insert a single Boolean into the buffer

Parameters

value

true or false


fun put(value: Byte)

Insert a single Byte into the buffer


fun put(value: Short)

Insert a single Short into the buffer.


fun put(value: Int)

Insert a single Int into the buffer.


fun put(value: Long)

Insert a single Long into the buffer.


fun put(value: UByte)

Insert a single UByte into the buffer


fun put(value: UShort)

Insert a single UShort into the buffer.


fun put(value: UInt)

Insert a single UInt into the buffer.


fun put(value: ULong)

Insert a single ULong into the buffer.


fun put(value: Float)

Insert a single Float into the buffer.


fun put(value: Double)

Insert a single Double into the buffer.


fun put(value: String): Int

Insert a single String into the buffer.


fun put(value: ByteArray): Int

Adds a ByteArray into the message as a Blob.

Return

position in buffer as the start of byte array

Parameters

value

byte array


fun put(value: IntArray): Int

Adds a IntArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: ShortArray): Int

Adds a ShortArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: LongArray): Int

Adds a LongArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: FloatArray): Int

Adds a FloatArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: DoubleArray): Int

Adds a DoubleArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: UByteArray): Int

Adds a UByteArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: UShortArray): Int

Adds a UShortArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: UIntArray): Int

Adds a UIntArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters


fun put(value: ULongArray): Int

Adds a ULongArray into the message as a typed vector of fixed size.

Return

position in buffer as the start of byte array

Parameters