Lines Matching refs:iPgOne
3696 sqlite3_int64 iPgOne; /* File offset to page 1 */ member
3810 return pFile->pMethods->xRead(pFile, zBuf, iAmt, iOfst+p->iPgOne); in apndRead()
3821 a[APND_MARK_PREFIX_SZ+i] = (p->iPgOne >> (56 - i*8)) & 0xff; in apndWriteMark()
3839 rc = pFile->pMethods->xWrite(pFile, zBuf, iAmt, iOfst+p->iPgOne); in apndWrite()
3840 if( rc==SQLITE_OK && iOfst + iAmt + p->iPgOne > p->iMark ){ in apndWrite()
3845 if( iOfst + iAmt + p->iPgOne > p->iMark ){ in apndWrite()
3846 p->iMark = p->iPgOne + iOfst + iAmt; in apndWrite()
3861 rc = pFile->pMethods->xTruncate(pFile, size+p->iPgOne+APND_MARK_SIZE); in apndTruncate()
3863 p->iMark = p->iPgOne+size; in apndTruncate()
3885 if( rc==SQLITE_OK && p->iPgOne ){ in apndFileSize()
3886 *pSize -= p->iPgOne + APND_MARK_SIZE; in apndFileSize()
3924 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", p->iPgOne, *(char**)pArg); in apndFileControl()
3984 return pFile->pMethods->xFetch(pFile, iOfst+p->iPgOne, iAmt, pp); in apndFetch()
3991 return pFile->pMethods->xUnfetch(pFile, iOfst+p->iPgOne, pPage); in apndUnfetch()
4063 p->iPgOne = apndReadMark(sz, pFile); in apndOpen()
4064 if( p->iPgOne>0 ){ in apndOpen()
4071 p->iPgOne = (sz+0xfff) & ~(sqlite3_int64)0xfff; in apndOpen()