writeBytes

abstract fun writeBytes(bytes: ByteArray, offset: Int, length: Int)

Writes a contiguous byte range to the host input stream.

Implementations must synchronously consume or copy the provided range before returning. Callers are allowed to reuse or mutate the backing array immediately after this method returns.

Parameters

bytes

backing byte array that contains the range to write.

offset

first byte index to write.

length

number of bytes to write.