Lines Matching refs:pBlob

89292 ** The input pBlob is guaranteed to be a Blob that is not marked
102418 Incrblob *pBlob = 0;
102436 pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob));
102439 if( !pBlob ) goto blob_open_out;
102469 pBlob->pTab = pTab;
102470 pBlob->zDb = db->aDb[sqlite3SchemaToIndex(db, pTab->pSchema)].zDbSName;
102528 pBlob->pStmt = (sqlite3_stmt *)sqlite3VdbeCreate(&sParse);
102529 assert( pBlob->pStmt || db->mallocFailed );
102530 if( pBlob->pStmt ){
102557 Vdbe *v = (Vdbe *)pBlob->pStmt;
102609 pBlob->iCol = iCol;
102610 pBlob->db = db;
102615 rc = blobSeekToRow(pBlob, iRow, &zErr);
102622 *ppBlob = (sqlite3_blob *)pBlob;
102624 if( pBlob && pBlob->pStmt ) sqlite3VdbeFinalize((Vdbe *)pBlob->pStmt);
102625 sqlite3DbFree(db, pBlob);
102639 SQLITE_API int sqlite3_blob_close(sqlite3_blob *pBlob){
102640 Incrblob *p = (Incrblob *)pBlob;
102661 sqlite3_blob *pBlob,
102668 Incrblob *p = (Incrblob *)pBlob;
102735 SQLITE_API int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, int iOffset){
102736 return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreePayloadChecked);
102742 SQLITE_API int sqlite3_blob_write(sqlite3_blob *pBlob, const void *z, int n, int iOffset){
102743 return blobReadWrite(pBlob, (void *)z, n, iOffset, sqlite3BtreePutData);
102752 SQLITE_API int sqlite3_blob_bytes(sqlite3_blob *pBlob){
102753 Incrblob *p = (Incrblob *)pBlob;
102767 SQLITE_API int sqlite3_blob_reopen(sqlite3_blob *pBlob, sqlite3_int64 iRow){
102769 Incrblob *p = (Incrblob *)pBlob;
129892 const unsigned char *pBlob;
129896 pBlob = sqlite3_value_blob(argv[0]);
129898 assert( pBlob==sqlite3_value_blob(argv[0]) ); /* No encoding change */
129901 for(i=0; i<n; i++, pBlob++){
129902 unsigned char c = *pBlob;
129960 u8 *pBlob = 0;
129970 p = pBlob = contextMalloc(pCtx, (nHex/2)+1);
129971 if( pBlob ){
129993 sqlite3_result_blob(pCtx, pBlob, (p - pBlob), sqlite3_free);
129997 sqlite3_free(pBlob);
196621 sqlite3_blob *pBlob; /* If not NULL, blob handle to read node */
197735 pReader->pBlob,
197745 sqlite3_blob_close(pReader->pBlob);
197746 pReader->pBlob = 0;
197755 assert( !pReader->pBlob
197758 while( pReader->pBlob && rc==SQLITE_OK
197772 sqlite3_blob_close(pSeg->pBlob);
197773 pSeg->pBlob = 0;
197848 assert( pReader->pBlob==0 );
197850 pReader->pBlob = p->pSegments;
197991 if( pReader->pBlob==0 || p<&pReader->aNode[pReader->nPopulate] ) break;
198077 sqlite3_blob_close(pReader->pBlob);
199874 char *pBlob; /* The BLOB encoding of the document size */
199880 pBlob = sqlite3_malloc64( 10*(sqlite3_int64)p->nColumn );
199881 if( pBlob==0 ){
199885 fts3EncodeIntArray(p->nColumn, aSz, pBlob, &nBlob);
199888 sqlite3_free(pBlob);
199893 sqlite3_bind_blob(pStmt, 2, pBlob, nBlob, sqlite3_free);
199920 char *pBlob; /* Storage for BLOB written into %_stat */
199935 pBlob = (char*)&a[nStat];
199970 fts3EncodeIntArray(nStat, a, pBlob, &nBlob);
199978 sqlite3_bind_blob(pStmt, 2, pBlob, nBlob, SQLITE_STATIC);
200221 ** Otherwise, if the allocation at pBlob->a is not already at least nMin
200224 ** If an OOM error occurs, set *pRc to SQLITE_NOMEM and leave pBlob->a
200225 ** unmodified. Otherwise, if the allocation succeeds, update pBlob->nAlloc
200226 ** to reflect the new size of the pBlob->a[] buffer.
200228 static void blobGrowBuffer(Blob *pBlob, int nMin, int *pRc){
200229 if( *pRc==SQLITE_OK && nMin>pBlob->nAlloc ){
200231 char *a = (char *)sqlite3_realloc64(pBlob->a, nAlloc);
200233 pBlob->nAlloc = nAlloc;
200234 pBlob->a = a;
211010 sqlite3_blob *pBlob = pRtree->pNodeBlob;
211012 sqlite3_blob_close(pBlob);
211041 sqlite3_blob *pBlob = pRtree->pNodeBlob;
211043 rc = sqlite3_blob_reopen(pBlob, iNode);
211044 pRtree->pNodeBlob = pBlob;
212131 RtreeMatchArg *pBlob, *pSrc; /* BLOB returned by geometry function */
212140 pBlob = (RtreeMatchArg*)&pInfo[1];
212141 memcpy(pBlob, pSrc, pSrc->iSize);
212142 pInfo->pContext = pBlob->cb.pContext;
212143 pInfo->nParam = pBlob->nParam;
212144 pInfo->aParam = pBlob->aParam;
212145 pInfo->apSqlParam = pBlob->apSqlParam;
212147 if( pBlob->cb.xGeom ){
212148 pCons->u.xGeom = pBlob->cb.xGeom;
212151 pCons->u.xQueryFunc = pBlob->cb.xQueryFunc;
216524 RtreeMatchArg *pBlob;
216530 pBlob = (RtreeMatchArg *)sqlite3_malloc64(nBlob);
216531 if( !pBlob ){
216535 pBlob->iSize = nBlob;
216536 pBlob->cb = pGeomCtx[0];
216537 pBlob->apSqlParam = (sqlite3_value**)&pBlob->aParam[nArg];
216538 pBlob->nParam = nArg;
216540 pBlob->apSqlParam[i] = sqlite3_value_dup(aArg[i]);
216541 if( pBlob->apSqlParam[i]==0 ) memErr = 1;
216543 pBlob->aParam[i] = sqlite3_value_int64(aArg[i]);
216545 pBlob->aParam[i] = sqlite3_value_double(aArg[i]);
216550 rtreeMatchArgFree(pBlob);
216552 sqlite3_result_pointer(ctx, pBlob, "RtreeMatchArg", rtreeMatchArgFree);
241328 sqlite3_blob *pBlob = p->pReader;
241330 rc = sqlite3_blob_reopen(pBlob, iRowid);
241332 p->pReader = pBlob;
241870 #define fts5BufferSafeAppendBlob(pBuf, pBlob, nBlob) { \
241872 memcpy(&(pBuf)->p[(pBuf)->n], pBlob, nBlob); \
247858 sqlite3_blob *pBlob = 0;
247864 "block", FTS5_STRUCTURE_ROWID, 1, &pBlob
247867 sqlite3_blob_write(pBlob, aCookie, 4, 0);
247868 rc = sqlite3_blob_close(pBlob);
248860 ** Arguments pBlob/nBlob contain a serialized Fts5Structure object. This
248867 const u8 *pBlob, int nBlob
248872 rc = fts5StructureDecode(pBlob, nBlob, 0, &p);
248887 ** Arguments pBlob/nBlob contain an "averages" record. This function
248894 const u8 *pBlob, int nBlob
248901 i += sqlite3Fts5GetVarint(&pBlob[i], &iVal);