• Home
  • Raw
  • Download

Lines Matching refs:pBuf

6655   void *pBuf;        /* The content of the page */  member
14738 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){ in sqlite3OsRead() argument
14740 return id->pMethods->xRead(id, pBuf, amt, offset); in sqlite3OsRead()
14742 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){ in sqlite3OsWrite() argument
14744 return id->pMethods->xWrite(id, pBuf, amt, offset); in sqlite3OsWrite()
15676 static void randomFill(char *pBuf, int nByte){ in randomFill() argument
15678 x = SQLITE_PTR_TO_INT(pBuf); in randomFill()
15684 *(int*)pBuf = r; in randomFill()
15685 pBuf += 4; in randomFill()
15692 *(pBuf++) = r & 0xff; in randomFill()
19078 LookasideSlot *pBuf = (LookasideSlot*)p; in sqlite3DbFree() local
19079 pBuf->pNext = db->lookaside.pFree; in sqlite3DbFree()
19080 db->lookaside.pFree = pBuf; in sqlite3DbFree()
19202 LookasideSlot *pBuf; in sqlite3DbMallocRaw() local
19209 }else if( (pBuf = db->lookaside.pFree)==0 ){ in sqlite3DbMallocRaw()
19212 db->lookaside.pFree = pBuf->pNext; in sqlite3DbMallocRaw()
19218 return (void*)pBuf; in sqlite3DbMallocRaw()
20442 SQLITE_API void sqlite3_randomness(int N, void *pBuf){ in sqlite3_randomness() argument
20443 unsigned char *zBuf = pBuf; in sqlite3_randomness()
23005 void *pBuf, /* Write content into this buffer */
23018 if( DosRead( pFile->h, pBuf, amt, &got ) != NO_ERROR ){
23025 memset(&((char*)pBuf)[got], 0, amt-got);
23036 const void *pBuf, /* The bytes to be written */
23053 ( rc = DosWrite( pFile->h, (PVOID)pBuf, amt, &wrote ) ) == NO_ERROR &&
23057 pBuf = &((char*)pBuf)[wrote];
28015 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
28024 got = osPread(id->h, pBuf, cnt, offset);
28027 got = osPread64(id->h, pBuf, cnt, offset);
28040 got = osRead(id->h, pBuf, cnt);
28052 pBuf = (void*)(got + (char*)pBuf);
28068 void *pBuf,
28085 got = seekAndRead(pFile, offset, pBuf, amt);
28094 memset(&((char*)pBuf)[got], 0, amt-got);
28106 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
28113 do{ got = osPwrite(id->h, pBuf, cnt, offset); }while( got<0 && errno==EINTR );
28115 do{ got = osPwrite64(id->h, pBuf, cnt, offset);}while( got<0 && errno==EINTR);
28128 got = osWrite(id->h, pBuf, cnt);
28147 const void *pBuf,
28180 if( rc!=4 || memcmp(oldCntr, &((char*)pBuf)[24-offset], 4)!=0 ){
28187 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
28190 pBuf = &((char*)pBuf)[wrote];
33758 void *pBuf, /* Write content into this buffer */
33773 while( !osReadFile(pFile->h, pBuf, amt, &nRead, 0) ){
33783 memset(&((char*)pBuf)[nRead], 0, amt-nRead);
33796 const void *pBuf, /* The bytes to be written */
33813 u8 *aRem = (u8 *)pBuf; /* Data yet to be written */
36061 SQLITE_PRIVATE void sqlite3BitvecClear(Bitvec *p, u32 i, void *pBuf){
36077 u32 *aiValues = pBuf;
36525 pPgHdr->pData = pPage->pBuf;
36533 assert( pPgHdr->pData==pPage->pBuf );
37021 SQLITE_PRIVATE void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){
37028 pcache1.pStart = pBuf;
37032 p = (PgFreeslot*)pBuf;
37035 pBuf = (void*)&((char*)pBuf)[sz];
37037 pcache1.pEnd = pBuf;
37156 p->page.pBuf = pPg;
37177 pcache1Free(p->page.pBuf);
37839 nFree += pcache1MemSize(p->page.pBuf);
53174 void *pBuf, /* Pointer to buffer */
53185 memcpy(pPayload, pBuf, nByte);
53188 memcpy(pBuf, pPayload, nByte);
53225 unsigned char *pBuf, /* Write the bytes into this buffer */
53257 rc = copyPayload(&aPayload[offset], pBuf, a, eOp, pPage->pDbPage);
53259 pBuf += a;
53356 u8 *aWrite = &pBuf[-4];
53370 rc = copyPayload(&aPayload[offset+4], pBuf, a, eOp, pDbPage);
53376 pBuf += a;
53399 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
53404 return accessPayload(pCur, offset, amt, (unsigned char*)pBuf, 0);
53416 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
53431 rc = accessPayload(pCur, offset, amt, pBuf, 0);
60910 void *pBuf, /* Where return pointer will be stored */
60917 if( pBuf ) return pBuf;
60920 pBuf = (void*)*ppFrom;
60925 return pBuf;
112926 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
112947 }else if( pBuf==0 ){
112953 pStart = pBuf;
112970 db->lookaside.bMalloced = pBuf==0 ?1:0;
113015 void *pBuf = va_arg(ap, void*); /* IMP: R-26835-10964 */
113018 rc = setupLookaside(db, pBuf, sz, cnt);