Lines Matching defs:pBlob

68585   Incrblob *pBlob = 0;
68592 pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob));
68593 if( !pBlob ) goto blob_open_out;
68681 pBlob->pStmt = (sqlite3_stmt *)sqlite3VdbeCreate(db);
68682 assert( pBlob->pStmt || db->mallocFailed );
68683 if( pBlob->pStmt ){
68684 Vdbe *v = (Vdbe *)pBlob->pStmt;
68732 pBlob->flags = flags;
68733 pBlob->iCol = iCol;
68734 pBlob->db = db;
68739 sqlite3_bind_int64(pBlob->pStmt, 1, iRow);
68740 rc = blobSeekToRow(pBlob, iRow, &zErr);
68745 *ppBlob = (sqlite3_blob *)pBlob;
68747 if( pBlob && pBlob->pStmt ) sqlite3VdbeFinalize((Vdbe *)pBlob->pStmt);
68748 sqlite3DbFree(db, pBlob);
68762 SQLITE_API int sqlite3_blob_close(sqlite3_blob *pBlob){
68763 Incrblob *p = (Incrblob *)pBlob;
68783 sqlite3_blob *pBlob,
68790 Incrblob *p = (Incrblob *)pBlob;
68832 SQLITE_API int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, int iOffset){
68833 return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreeData);
68839 SQLITE_API int sqlite3_blob_write(sqlite3_blob *pBlob, const void *z, int n, int iOffset){
68840 return blobReadWrite(pBlob, (void *)z, n, iOffset, sqlite3BtreePutData);
68849 SQLITE_API int sqlite3_blob_bytes(sqlite3_blob *pBlob){
68850 Incrblob *p = (Incrblob *)pBlob;
68864 SQLITE_API int sqlite3_blob_reopen(sqlite3_blob *pBlob, sqlite3_int64 iRow){
68866 Incrblob *p = (Incrblob *)pBlob;
82611 const unsigned char *pBlob;
82615 pBlob = sqlite3_value_blob(argv[0]);
82617 assert( pBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */
82620 for(i=0; i<n; i++, pBlob++){
82621 unsigned char c = *pBlob;
122241 char *pBlob; /* The BLOB encoding of the document size */
122247 pBlob = sqlite3_malloc( 10*p->nColumn );
122248 if( pBlob==0 ){
122252 fts3EncodeIntArray(p->nColumn, aSz, pBlob, &nBlob);
122255 sqlite3_free(pBlob);
122260 sqlite3_bind_blob(pStmt, 2, pBlob, nBlob, sqlite3_free);
122287 char *pBlob; /* Storage for BLOB written into %_stat */
122302 pBlob = (char*)&a[nStat];
122331 fts3EncodeIntArray(nStat, a, pBlob, &nBlob);
122338 sqlite3_bind_blob(pStmt, 1, pBlob, nBlob, SQLITE_STATIC);
127440 RtreeMatchArg *pBlob;
127444 pBlob = (RtreeMatchArg *)sqlite3_malloc(nBlob);
127445 if( !pBlob ){
127449 pBlob->magic = RTREE_GEOMETRY_MAGIC;
127450 pBlob->xGeom = pGeomCtx->xGeom;
127451 pBlob->pContext = pGeomCtx->pContext;
127452 pBlob->nParam = nArg;
127454 pBlob->aParam[i] = sqlite3_value_double(aArg[i]);
127456 sqlite3_result_blob(ctx, pBlob, nBlob, doSqlite3Free);