read

abstract fun read(output: ByteArray, size: Int = output.size, offset: Int = 0)(source)

Reads size bytes from this blob, starting at offset, into output.

Throws

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