Lines Matching refs:pBuf

6931   void *pBuf;        /* The content of the page */  member
16535 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){ in sqlite3OsRead() argument
16537 return id->pMethods->xRead(id, pBuf, amt, offset); in sqlite3OsRead()
16539 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){ in sqlite3OsWrite() argument
16541 return id->pMethods->xWrite(id, pBuf, amt, offset); in sqlite3OsWrite()
17527 static void randomFill(char *pBuf, int nByte){ in randomFill() argument
17529 x = SQLITE_PTR_TO_INT(pBuf); in randomFill()
17535 *(int*)pBuf = r; in randomFill()
17536 pBuf += 4; in randomFill()
17543 *(pBuf++) = r & 0xff; in randomFill()
21038 LookasideSlot *pBuf = (LookasideSlot*)p;
21043 pBuf->pNext = db->lookaside.pFree;
21044 db->lookaside.pFree = pBuf;
21173 LookasideSlot *pBuf;
21180 }else if( (pBuf = db->lookaside.pFree)==0 ){
21183 db->lookaside.pFree = pBuf->pNext;
21189 return (void*)pBuf;
22526 SQLITE_API void SQLITE_STDCALL sqlite3_randomness(int N, void *pBuf){
22528 unsigned char *zBuf = pBuf;
22556 if( N<=0 || pBuf==0 ){
28584 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
28596 got = osPread(id->h, pBuf, cnt, offset);
28599 got = osPread64(id->h, pBuf, cnt, offset);
28612 got = osRead(id->h, pBuf, cnt);
28624 pBuf = (void*)(got + (char*)pBuf);
28640 void *pBuf,
28664 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt);
28668 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], nCopy);
28669 pBuf = &((u8 *)pBuf)[nCopy];
28676 got = seekAndRead(pFile, offset, pBuf, amt);
28685 memset(&((char*)pBuf)[got], 0, amt-got);
28700 const void *pBuf, /* Copy data from this buffer to the file */
28712 do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
28714 do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
28724 rc = osWrite(fd, pBuf, nBuf);
28743 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
28744 return seekAndWriteFd(id->h, offset, pBuf, cnt, &id->lastErrno);
28754 const void *pBuf,
28787 if( rc!=4 || memcmp(oldCntr, &((char*)pBuf)[24-offset], 4)!=0 ){
28799 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt);
28803 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, nCopy);
28804 pBuf = &((u8 *)pBuf)[nCopy];
28811 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
28814 pBuf = &((char*)pBuf)[wrote];
35716 void *pBuf, /* Write content into this buffer */
35733 pFile->h, pBuf, amt, offset, pFile->locktype));
35740 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], amt);
35746 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], nCopy);
35747 pBuf = &((u8 *)pBuf)[nCopy];
35760 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){
35765 while( !osReadFile(pFile->h, pBuf, amt, &nRead, &overlapped) &&
35779 memset(&((char*)pBuf)[nRead], 0, amt-nRead);
35796 const void *pBuf, /* The bytes to be written */
35811 pFile->h, pBuf, amt, offset, pFile->locktype));
35818 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, amt);
35824 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, nCopy);
35825 pBuf = &((u8 *)pBuf)[nCopy];
35841 u8 *aRem = (u8 *)pBuf; /* Data yet to be written */
39080 SQLITE_PRIVATE void sqlite3BitvecClear(Bitvec *p, u32 i, void *pBuf){
39096 u32 *aiValues = pBuf;
39584 pPgHdr->pData = pPage->pBuf;
40091 SQLITE_PRIVATE void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){
40098 pcache1.pStart = pBuf;
40102 p = (PgFreeslot*)pBuf;
40105 pBuf = (void*)&((char*)pBuf)[sz];
40107 pcache1.pEnd = pBuf;
40231 p->page.pBuf = pPg;
40252 pcache1Free(p->page.pBuf);
40941 nFree += pcache1MemSize(p->page.pBuf);
57192 void *pBuf, /* Pointer to buffer */
57203 memcpy(pPayload, pBuf, nByte);
57206 memcpy(pBuf, pPayload, nByte);
57245 unsigned char *pBuf, /* Write the bytes into this buffer */
57254 unsigned char * const pBufStart = pBuf;
57282 rc = copyPayload(&aPayload[offset], pBuf, a, (eOp & 0x01), pPage->pDbPage);
57284 pBuf += a;
57396 && &pBuf[-4]>=pBufStart /* (7) */
57399 u8 *aWrite = &pBuf[-4];
57416 rc = copyPayload(&aPayload[offset+4], pBuf, a, (eOp&0x01), pDbPage);
57422 pBuf += a;
57445 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
57450 return accessPayload(pCur, offset, amt, (unsigned char*)pBuf, 0);
57462 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
57477 rc = accessPayload(pCur, offset, amt, pBuf, 0);
66360 void *pBuf, /* Where return pointer will be stored */
66367 if( pBuf ) return pBuf;
66370 pBuf = (void*)*ppFrom;
66375 return pBuf;
128635 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
128656 }else if( pBuf==0 ){
128662 pStart = pBuf;
128679 db->lookaside.bMalloced = pBuf==0 ?1:0;
128735 void *pBuf = va_arg(ap, void*); /* IMP: R-26835-10964 */
128738 rc = setupLookaside(db, pBuf, sz, cnt);