Lines Matching defs:pBlob
157 Incrblob *pBlob = 0;
164 pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob));
165 if( !pBlob ) goto blob_open_out;
253 pBlob->pStmt = (sqlite3_stmt *)sqlite3VdbeCreate(db);
254 assert( pBlob->pStmt || db->mallocFailed );
255 if( pBlob->pStmt ){
256 Vdbe *v = (Vdbe *)pBlob->pStmt;
304 pBlob->flags = flags;
305 pBlob->iCol = iCol;
306 pBlob->db = db;
311 sqlite3_bind_int64(pBlob->pStmt, 1, iRow);
312 rc = blobSeekToRow(pBlob, iRow, &zErr);
317 *ppBlob = (sqlite3_blob *)pBlob;
319 if( pBlob && pBlob->pStmt ) sqlite3VdbeFinalize((Vdbe *)pBlob->pStmt);
320 sqlite3DbFree(db, pBlob);
334 int sqlite3_blob_close(sqlite3_blob *pBlob){
335 Incrblob *p = (Incrblob *)pBlob;
355 sqlite3_blob *pBlob,
362 Incrblob *p = (Incrblob *)pBlob;
404 int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, int iOffset){
405 return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreeData);
411 int sqlite3_blob_write(sqlite3_blob *pBlob, const void *z, int n, int iOffset){
412 return blobReadWrite(pBlob, (void *)z, n, iOffset, sqlite3BtreePutData);
421 int sqlite3_blob_bytes(sqlite3_blob *pBlob){
422 Incrblob *p = (Incrblob *)pBlob;
436 int sqlite3_blob_reopen(sqlite3_blob *pBlob, sqlite3_int64 iRow){
438 Incrblob *p = (Incrblob *)pBlob;