Lines Matching defs:pBuf
4770 void *pBuf;
4789 pBuf = sqlite3_malloc64( nIn ? nIn : 1 );
4790 if( pBuf==0 ){
4795 if( nIn==(sqlite3_int64)fread(pBuf, 1, (size_t)nIn, in) ){
4796 sqlite3_result_blob64(ctx, pBuf, nIn, sqlite3_free);
4799 sqlite3_free(pBuf);
8766 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){
8767 if( pBuf->n+nByte>pBuf->nAlloc ){
8769 sqlite3_int64 nNew = pBuf->n ? pBuf->n*2 : 512;
8770 int nReq = pBuf->n + nByte;
8773 aNew = sqlite3_realloc64(pBuf->a, nNew);
8775 pBuf->a = aNew;
8776 pBuf->nAlloc = (int)nNew;
19106 char *pBuf;
19111 pBuf = sqlite3_malloc64( nIn+1 );
19112 if( pBuf==0 ){ fclose(in); return 0; }
19113 nRead = fread(pBuf, nIn, 1, in);
19116 sqlite3_free(pBuf);
19119 pBuf[nIn] = 0;
19121 return pBuf;