Lines Matching refs:nPg
15351 i64 nPg; /* Size of bitmap */ member
15385 i64 nPg; /* Size of db in pages */ member
15592 static RecoverBitmap *recoverBitmapAlloc(sqlite3_recover *p, i64 nPg){ in recoverBitmapAlloc() argument
15593 int nElem = (nPg+1+31) / 32; in recoverBitmapAlloc()
15598 pRet->nPg = nPg; in recoverBitmapAlloc()
15614 if( iPg<=pMap->nPg ){ in recoverBitmapSet()
15627 if( iPg<=pMap->nPg && iPg>0 ){ in recoverBitmapQuery()
15806 i64 nPg = 0; in recoverPageCount() local
15812 nPg = sqlite3_column_int64(pStmt, 0); in recoverPageCount()
15816 return nPg; in recoverPageCount()
15899 i64 nPg = recoverPageCount(p); in recoverGetPage() local
15900 sqlite3_result_int64(pCtx, nPg); in recoverGetPage()
15915 int nPg; in recoverGetPage() local
15918 nPg = sqlite3_column_bytes(pStmt, 0); in recoverGetPage()
15919 if( pgno==1 && nPg==p->pgsz && 0==memcmp(p->pPage1Cache, aPg, nPg) ){ in recoverGetPage()
15922 sqlite3_result_blob(pCtx, aPg, nPg-p->nReserve, SQLITE_TRANSIENT); in recoverGetPage()
16845 "SELECT ii FROM seq" , p->laf.nPg in recoverLostAndFound3Init()
17059 pLaf->nPg = recoverPageCount(p); in recoverLostAndFound1Init()
17060 pLaf->pUsed = recoverBitmapAlloc(p, pLaf->nPg); in recoverLostAndFound1Init()
17145 "SELECT NULL, ii FROM seq", p->laf.nPg in recoverLostAndFound2Init()