update

fun update(byte: Byte)

Copies a byte into the buffer.

Since

2.0.0

Parameters

byte

fun update(byteArray: ByteArray)

Copies an array of bytes into the buffer.

Since

2.0.0

Parameters

byteArray

fun update(byteArray: ByteArray, offset: Int, length: Int)

Copies a part of an array of bytes into the buffer.

Since

2.0.0

Parameters

byteArray
offset

The offset which part of the bytes to copy.

length

The number of bytes to copy.