Lines Matching refs:pBuf

7293   void *pBuf;  in readFileContents()  local
7312 pBuf = sqlite3_malloc64( nIn ? nIn : 1 ); in readFileContents()
7313 if( pBuf==0 ){ in readFileContents()
7318 if( nIn==(sqlite3_int64)fread(pBuf, 1, (size_t)nIn, in) ){ in readFileContents()
7319 sqlite3_result_blob64(ctx, pBuf, nIn, sqlite3_free); in readFileContents()
7322 sqlite3_free(pBuf); in readFileContents()
11322 static int zipfileBufferGrow(ZipfileBuffer *pBuf, int nByte){ in zipfileBufferGrow() argument
11323 if( pBuf->n+nByte>pBuf->nAlloc ){ in zipfileBufferGrow()
11325 sqlite3_int64 nNew = pBuf->n ? pBuf->n*2 : 512; in zipfileBufferGrow()
11326 int nReq = pBuf->n + nByte; in zipfileBufferGrow()
11329 aNew = sqlite3_realloc64(pBuf->a, nNew); in zipfileBufferGrow()
11331 pBuf->a = aNew; in zipfileBufferGrow()
11332 pBuf->nAlloc = (int)nNew; in zipfileBufferGrow()
15616 static int dbdataBufferSize(DbdataBuffer *pBuf, sqlite3_int64 nMin){ in dbdataBufferSize() argument
15617 if( nMin>pBuf->nBuf ){ in dbdataBufferSize()
15619 u8 *aNew = (u8*)sqlite3_realloc64(pBuf->aBuf, nNew); in dbdataBufferSize()
15622 pBuf->aBuf = aNew; in dbdataBufferSize()
15623 pBuf->nBuf = nNew; in dbdataBufferSize()
15631 static void dbdataBufferFree(DbdataBuffer *pBuf){ in dbdataBufferFree() argument
15632 sqlite3_free(pBuf->aBuf); in dbdataBufferFree()
15633 memset(pBuf, 0, sizeof(*pBuf)); in dbdataBufferFree()
23164 char *pBuf; in readFile() local
23175 pBuf = sqlite3_malloc64( nIn+1 ); in readFile()
23176 if( pBuf==0 ){ in readFile()
23181 nRead = fread(pBuf, nIn, 1, in); in readFile()
23184 sqlite3_free(pBuf); in readFile()
23188 pBuf[nIn] = 0; in readFile()
23190 return pBuf; in readFile()