Lines Matching refs:pIter
290 BtLock *pIter; in querySharedCacheTableLock() local
317 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){ in querySharedCacheTableLock()
327 assert( pIter->eLock==READ_LOCK || pIter->eLock==WRITE_LOCK ); in querySharedCacheTableLock()
328 assert( eLock==READ_LOCK || pIter->pBtree==p || pIter->eLock==READ_LOCK); in querySharedCacheTableLock()
329 if( pIter->pBtree!=p && pIter->iTable==iTab && pIter->eLock!=eLock ){ in querySharedCacheTableLock()
330 sqlite3ConnectionBlocked(p->db, pIter->pBtree->db); in querySharedCacheTableLock()
363 BtLock *pIter; in setSharedCacheTableLock() local
381 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){ in setSharedCacheTableLock()
382 if( pIter->iTable==iTable && pIter->pBtree==p ){ in setSharedCacheTableLock()
383 pLock = pIter; in setSharedCacheTableLock()
1198 u8 *pIter; /* For scanning through pCell */ in btreeParseCellPtr() local
1206 pIter = pCell; in btreeParseCellPtr()
1214 nPayload = *pIter; in btreeParseCellPtr()
1216 u8 *pEnd = &pIter[8]; in btreeParseCellPtr()
1219 nPayload = (nPayload<<7) | (*++pIter & 0x7f); in btreeParseCellPtr()
1220 }while( (*pIter)>=0x80 && pIter<pEnd ); in btreeParseCellPtr()
1222 pIter++; in btreeParseCellPtr()
1231 iKey = *pIter; in btreeParseCellPtr()
1234 iKey = ((iKey&0x7f)<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1236 iKey = (iKey<<7) | ((x =*++pIter) & 0x7f); in btreeParseCellPtr()
1238 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1240 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1242 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1244 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1246 iKey = (iKey<<7) | ((x = *++pIter) & 0x7f); in btreeParseCellPtr()
1248 iKey = (iKey<<8) | (*++pIter); in btreeParseCellPtr()
1257 pIter++; in btreeParseCellPtr()
1261 pInfo->pPayload = pIter; in btreeParseCellPtr()
1268 pInfo->nSize = nPayload + (u16)(pIter - pCell); in btreeParseCellPtr()
1280 u8 *pIter; /* For scanning through pCell */ in btreeParseCellPtrIndex() local
1286 pIter = pCell + pPage->childPtrSize; in btreeParseCellPtrIndex()
1287 nPayload = *pIter; in btreeParseCellPtrIndex()
1289 u8 *pEnd = &pIter[8]; in btreeParseCellPtrIndex()
1292 nPayload = (nPayload<<7) | (*++pIter & 0x7f); in btreeParseCellPtrIndex()
1293 }while( *(pIter)>=0x80 && pIter<pEnd ); in btreeParseCellPtrIndex()
1295 pIter++; in btreeParseCellPtrIndex()
1298 pInfo->pPayload = pIter; in btreeParseCellPtrIndex()
1305 pInfo->nSize = nPayload + (u16)(pIter - pCell); in btreeParseCellPtrIndex()
1334 u8 *pIter = pCell + pPage->childPtrSize; /* For looping over bytes of pCell */ in cellSizePtr() local
1347 nSize = *pIter; in cellSizePtr()
1349 pEnd = &pIter[8]; in cellSizePtr()
1352 nSize = (nSize<<7) | (*++pIter & 0x7f); in cellSizePtr()
1353 }while( *(pIter)>=0x80 && pIter<pEnd ); in cellSizePtr()
1355 pIter++; in cellSizePtr()
1359 nSize += (u32)(pIter - pCell); in cellSizePtr()
1369 nSize += 4 + (u16)(pIter - pCell); in cellSizePtr()
1375 u8 *pIter = pCell + 4; /* For looping over bytes of pCell */ in cellSizePtrNoPayload() local
1390 pEnd = pIter + 9; in cellSizePtrNoPayload()
1391 while( (*pIter++)&0x80 && pIter<pEnd ); in cellSizePtrNoPayload()
1392 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB ); in cellSizePtrNoPayload()
1393 return (u16)(pIter - pCell); in cellSizePtrNoPayload()
1396 u8 *pIter = pCell; /* For looping over bytes of pCell */ in cellSizePtrTableLeaf() local
1409 nSize = *pIter; in cellSizePtrTableLeaf()
1411 pEnd = &pIter[8]; in cellSizePtrTableLeaf()
1414 nSize = (nSize<<7) | (*++pIter & 0x7f); in cellSizePtrTableLeaf()
1415 }while( *(pIter)>=0x80 && pIter<pEnd ); in cellSizePtrTableLeaf()
1417 pIter++; in cellSizePtrTableLeaf()
1421 if( (*pIter++)&0x80 in cellSizePtrTableLeaf()
1422 && (*pIter++)&0x80 in cellSizePtrTableLeaf()
1423 && (*pIter++)&0x80 in cellSizePtrTableLeaf()
1424 && (*pIter++)&0x80 in cellSizePtrTableLeaf()
1425 && (*pIter++)&0x80 in cellSizePtrTableLeaf()
1426 && (*pIter++)&0x80 in cellSizePtrTableLeaf()
1427 && (*pIter++)&0x80 in cellSizePtrTableLeaf()
1428 && (*pIter++)&0x80 ){ pIter++; } in cellSizePtrTableLeaf()
1432 nSize += (u32)(pIter - pCell); in cellSizePtrTableLeaf()
1442 nSize += 4 + (u16)(pIter - pCell); in cellSizePtrTableLeaf()
3528 BtLock *pIter; in sqlite3BtreeBeginTrans() local
3529 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){ in sqlite3BtreeBeginTrans()
3530 if( pIter->pBtree!=p ){ in sqlite3BtreeBeginTrans()
3531 pBlock = pIter->pBtree->db; in sqlite3BtreeBeginTrans()