Lines Matching refs:pBuf
2292 void *pBuf; in readFileContents() local
2311 pBuf = sqlite3_malloc64( nIn ? nIn : 1 ); in readFileContents()
2312 if( pBuf==0 ){ in readFileContents()
2317 if( nIn==(sqlite3_int64)fread(pBuf, 1, (size_t)nIn, in) ){ in readFileContents()
2318 sqlite3_result_blob64(ctx, pBuf, nIn, sqlite3_free); in readFileContents()
2321 sqlite3_free(pBuf); in readFileContents()
8657 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
8658 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
8660 sqlite3_int64 nNew = pBuf->n ? pBuf->n*2 : 512; in zipfileBufferGrow()
8661 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
8664 aNew = sqlite3_realloc64(pBuf->a, nNew); in zipfileBufferGrow()
8666 pBuf->a = aNew; in zipfileBufferGrow()
8667 pBuf->nAlloc = (int)nNew; in zipfileBufferGrow()
15355 char *pBuf; in readFile() local
15360 pBuf = sqlite3_malloc64( nIn+1 ); in readFile()
15361 if( pBuf==0 ){ fclose(in); return 0; } in readFile()
15362 nRead = fread(pBuf, nIn, 1, in); in readFile()
15365 sqlite3_free(pBuf); in readFile()
15368 pBuf[nIn] = 0; in readFile()
15370 return pBuf; in readFile()