Small. Fast. Reliable.
Choose any three.

SQLite Requirement Matrix Details
blob_read.html

Index Summary Markup Original


R-08195-21952-34144-42523-58914-33404-63629-47185 tcl slt th3 src

This function is used to read data from an open BLOB handle into a caller-supplied buffer. N bytes of data are copied into buffer Z from the open BLOB, starting at offset iOffset.

th3/cov1/vdbeblob01.test:87

/* IMP: R-08195-21952 */
# EVIDENCE-OF: R-08195-21952 This function is used to read data from an
# open BLOB handle into a caller-supplied buffer. N bytes of data are
# copied into buffer Z from the open BLOB, starting at offset iOffset.

R-42401-19613-44791-55246-19167-45900-28933-57755 tcl slt th3 src

If offset iOffset is less than N bytes from the end of the BLOB, SQLITE_ERROR is returned and no data is read.

th3/cov1/vdbeblob01.test:108

/* IMP: R-42401-19613 */
# EVIDENCE-OF: R-42401-19613 If offset iOffset is less than N bytes from
# the end of the BLOB, SQLITE_ERROR is returned and no data is read.

R-35711-48727-49492-05161-09107-16114-44571-60110 tcl slt th3 src

If N or iOffset is less than zero, SQLITE_ERROR is returned and no data is read.

th3/cov1/vdbeblob01.test:95

/* IMP: R-35711-48727 */
# EVIDENCE-OF: R-35711-48727 If N or iOffset is less than zero,
# SQLITE_ERROR is returned and no data is read.

R-23027-35758-08796-19756-16363-24577-05722-25269 tcl slt th3 src

The size of the blob (and hence the maximum value of N+iOffset) can be determined using the sqlite3_blob_bytes() interface.

th3/cov1/vdbeblob01.test:58

/* IMP: R-23027-35758 */
# EVIDENCE-OF: R-23027-35758 The size of the blob (and hence the maximum
# value of N+iOffset) can be determined using the sqlite3_blob_bytes()
# interface.

R-29082-45770-21240-41661-14924-48900-49346-30675 tcl slt th3 src

An attempt to read from an expired BLOB handle fails with an error code of SQLITE_ABORT.

th3/cov1/vdbeblob01.test:164

/* IMP: R-29082-45770 */
# EVIDENCE-OF: R-29082-45770 An attempt to read from an expired BLOB
# handle fails with an error code of SQLITE_ABORT.

R-10893-13770-29008-51080-40727-44407-18243-57719 tcl slt th3 src

On success, sqlite3_blob_read() returns SQLITE_OK. Otherwise, an error code or an extended error code is returned.

th3/cov1/vdbeblob01.test:23

/* IMP: R-10893-13770 */
# EVIDENCE-OF: R-10893-13770 On success, sqlite3_blob_read() returns
# SQLITE_OK. Otherwise, an error code or an extended error code is
# returned.