Lines Matching refs:pBuf
2255 void *pBuf;
2274 pBuf = sqlite3_malloc64( nIn ? nIn : 1 );
2275 if( pBuf==0 ){
2280 if( nIn==(sqlite3_int64)fread(pBuf, 1, (size_t)nIn, in) ){
2281 sqlite3_result_blob64(ctx, pBuf, nIn, sqlite3_free);
2284 sqlite3_free(pBuf);
7791 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){
7792 if( pBuf->n+nByte>pBuf->nAlloc ){
7794 sqlite3_int64 nNew = pBuf->n ? pBuf->n*2 : 512;
7795 int nReq = pBuf->n + nByte;
7798 aNew = sqlite3_realloc64(pBuf->a, nNew);
7800 pBuf->a = aNew;
7801 pBuf->nAlloc = (int)nNew;
14350 char *pBuf;
14355 pBuf = sqlite3_malloc64( nIn+1 );
14356 if( pBuf==0 ){ fclose(in); return 0; }
14357 nRead = fread(pBuf, nIn, 1, in);
14360 sqlite3_free(pBuf);
14363 pBuf[nIn] = 0;
14365 return pBuf;