Blob

Exposes the BLOB API.

Properties

Link copied to clipboard
abstract val bytes: Int

Returns the size of this blob in bytes.

Functions

Link copied to clipboard
abstract override fun close()

Closes this open Blob unconditionally.

Link copied to clipboard
abstract fun read(output: ByteArray, size: Int = output.size, offset: Int = 0)

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

Link copied to clipboard
fun Blob.read(size: Int = bytes, offset: Int = 0): ByteArray

Reads size bytes from the blob, starting at offset and returns the bytes read.

Link copied to clipboard
abstract fun reopen(rowid: Long)

Moves this blob to the row identified by rowid of the same database, table and column.

Link copied to clipboard
abstract fun write(input: ByteArray, size: Int = input.size, offset: Int = 0)

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