write

abstract fun write(input: ByteArray, size: Int = input.size, offset: Int = 0)(source)

Writes size bytes from input into this blob, starting at offset.

This can only overwrite existing bytes, it cannot grow the blob. offset plus size must not exceed bytes.

Throws

if offset and size are out of range for this blob, or if the write fails.