set

operator fun set(key: String? = null, value: Boolean)

Insert a single Boolean into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: Byte)

Insert a single Byte into the buffer. A key must be present if element is inserted into a map.


inline operator fun set(key: String? = null, value: Short)

Insert a single Short into the buffer. A key must be present if element is inserted into a map.


inline operator fun set(key: String? = null, value: Int)

Insert a single Int into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: Long)

Insert a single Long into the buffer. A key must be present if element is inserted into a map.


inline operator fun set(key: String? = null, value: UByte)

Insert a single UByte into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: ULong)

Insert a single ULong into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: Float)

Insert a single Float into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: Double)

Insert a single Double into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: String): Int

Insert a single String into the buffer. A key must be present if element is inserted into a map.


operator fun set(key: String? = null, value: ByteArray): Int

Adds a ByteArray into the message as a Blob. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters

value

byte array


operator fun set(key: String? = null, value: IntArray): Int

Adds a IntArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: ShortArray): Int

Adds a ShortArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: LongArray): Int

Adds a LongArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: FloatArray): Int

Adds a FloatArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: DoubleArray): Int

Adds a DoubleArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: UByteArray): Int

Adds a UByteArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: UShortArray): Int

Adds a UShortArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


fun set(key: String? = null, value: UIntArray): Int

Adds a UIntArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters


operator fun set(key: String? = null, value: ULongArray): Int

Adds a ULongArray into the message as a typed vector of fixed size. A key must be present if element is inserted into a map.

Return

position in buffer as the start of byte array

Parameters