• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/sqlite-3.6.22/

Lines Matching defs:pBuf

12086 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
12088 return id->pMethods->xRead(id, pBuf, amt, offset);
12090 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
12092 return id->pMethods->xWrite(id, pBuf, amt, offset);
12836 static void randomFill(char *pBuf, int nByte){
12838 x = SQLITE_PTR_TO_INT(pBuf);
12844 *(int*)pBuf = r;
12845 pBuf += 4;
12852 *(pBuf++) = r & 0xff;
16030 LookasideSlot *pBuf = (LookasideSlot*)p;
16031 pBuf->pNext = db->lookaside.pFree;
16032 db->lookaside.pFree = pBuf;
16141 LookasideSlot *pBuf;
16146 && (pBuf = db->lookaside.pFree)!=0 ){
16147 db->lookaside.pFree = pBuf->pNext;
16152 return (void*)pBuf;
17368 SQLITE_API void sqlite3_randomness(int N, void *pBuf){
17369 unsigned char *zBuf = pBuf;
20241 void *pBuf, /* Write content into this buffer */
20254 if( DosRead( pFile->h, pBuf, amt, &got ) != NO_ERROR ){
20261 memset(&((char*)pBuf)[got], 0, amt-got);
20272 const void *pBuf, /* The bytes to be written */
20289 ( rc = DosWrite( pFile->h, (PVOID)pBuf, amt, &wrote ) ) == NO_ERROR &&
20293 pBuf = &((char*)pBuf)[wrote];
24216 ** bytes into pBuf. Return the number of bytes actually read.
24227 static int seekAndRead(unixFile *id, sqlite3_int64 offset, void *pBuf, int cnt){
24232 got = pread(id->h, pBuf, cnt, offset);
24235 got = pread64(id->h, pBuf, cnt, offset);
24248 got = read(id->h, pBuf, cnt);
24265 void *pBuf,
24280 got = seekAndRead(pFile, offset, pBuf, amt);
24289 memset(&((char*)pBuf)[got], 0, amt-got);
24295 ** Seek to the offset in id->offset then read cnt bytes into pBuf.
24301 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
24306 got = pwrite(id->h, pBuf, cnt, offset);
24308 got = pwrite64(id->h, pBuf, cnt, offset);
24319 got = write(id->h, pBuf, cnt);
24337 const void *pBuf,
24368 if( rc!=4 || memcmp(oldCntr, &((char*)pBuf)[24-offset], 4)!=0 ){
24375 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
24378 pBuf = &((char*)pBuf)[wrote];
27772 void *pBuf, /* Write content into this buffer */
27791 if( !ReadFile(pFile->h, pBuf, amt, &got, 0) ){
27799 memset(&((char*)pBuf)[got], 0, amt-got);
27810 const void *pBuf, /* The bytes to be written */
27833 && (rc = WriteFile(pFile->h, pBuf, amt, &wrote, 0))!=0
27837 pBuf = &((char*)pBuf)[wrote];
29263 ** pBuf must be a pointer to at least BITVEC_SZ bytes of temporary storage
29266 SQLITE_PRIVATE void sqlite3BitvecClear(Bitvec *p, u32 i, void *pBuf){
29282 u32 *aiValues = pBuf;
30142 ** verb to sqlite3_config(). Parameter pBuf points to an allocation large
30145 SQLITE_PRIVATE void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){
30150 pcache1.pStart = pBuf;
30153 p = (PgFreeslot*)pBuf;
30156 pBuf = (void*)&((char*)pBuf)[sz];
30158 pcache1.pEnd = pBuf;
41182 ** from pPayload to the buffer pointed at by pBuf. If eOp is true,
41184 ** of data are copied from the buffer pBuf to pPayload.
41190 void *pBuf, /* Pointer to buffer */
41201 memcpy(pPayload, pBuf, nByte);
41204 memcpy(pBuf, pPayload, nByte);
41213 ** buffer pBuf). If it is non-zero, a write (data copied from
41214 ** buffer pBuf).
41217 ** Data is read to or from the buffer pBuf.
41241 unsigned char *pBuf, /* Write the bytes into this buffer */
41273 rc = copyPayload(&aPayload[offset], pBuf, a, eOp, pPage->pDbPage);
41275 pBuf += a;
41353 rc = copyPayload(&aPayload[offset+4], pBuf, a, eOp, pDbPage);
41357 pBuf += a;
41371 ** "amt" bytes will be transfered into pBuf[]. The transfer
41381 SQLITE_PRIVATE int sqlite3BtreeKey(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
41386 return accessPayload(pCur, offset, amt, (unsigned char*)pBuf, 0);
41391 ** "amt" bytes will be transfered into pBuf[]. The transfer
41398 SQLITE_PRIVATE int sqlite3BtreeData(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){
41413 rc = accessPayload(pCur, offset, amt, pBuf, 0);
48428 ** The pBuf parameter is the initial value of a pointer which will
48429 ** receive the new memory. pBuf is normally NULL. If pBuf is not
48431 ** this routine should not allocate any new memory. When pBuf is not
48432 ** NULL simply return pBuf. Only allocate new memory space when pBuf
48446 void *pBuf, /* Where return pointer will be stored */
48453 if( pBuf ) return pBuf;
48456 pBuf = (void*)*ppFrom;
48461 return pBuf;
95609 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
95629 }else if( pBuf==0 ){
95636 pStart = pBuf;
95653 db->lookaside.bMalloced = pBuf==0 ?1:0;
95678 void *pBuf = va_arg(ap, void*);
95681 rc = setupLookaside(db, pBuf, sz, cnt);