SQLITE3_BLOB_BYTES(3) Library Functions Manual SQLITE3_BLOB_BYTES(3)

sqlite3_blob_bytesreturn the size of an open BLOB

#include <sqlite3.h>

int
sqlite3_blob_bytes(sqlite3_blob *);

Returns the size in bytes of the BLOB accessible via the successfully opened BLOB handle in its only argument. The incremental blob I/O routines can only read or overwriting existing blob content; they cannot change the size of a blob.

This routine only works on a BLOB handle which has been created by a prior successful call to () and which has not been closed by (). Passing any other pointer in to this routine results in undefined and probably undesirable behavior.

These declarations were extracted from the interface documentation at line 7824.

SQLITE_API int sqlite3_blob_bytes(sqlite3_blob *);

sqlite3_blob(3), sqlite3_blob_close(3), sqlite3_blob_open(3)

January 24, 2024 NetBSD 11.0