Lines Matching refs:iMark
3735 ** iPgOne iMark
3746 ** The size of the database is iMark - iPgOne.
3751 ** iMark will be the size of the underlying file minus 25 (APND_MARKSIZE).
3752 ** Or, iMark is -1 to indicate that it has not yet been written.
3757 sqlite3_int64 iMark; /* Offset of the append mark. -1 if unwritten */
3874 * If and only if this succeeds, internal ApndFile.iMark is updated.
3895 paf->iMark = iWriteEnd;
3914 if( paf->iMark < 0 || paf->iPgOne + iWriteEnd > paf->iMark ){
3930 return pFile->pMethods->xTruncate(pFile, paf->iMark+APND_MARK_SIZE);
3947 *pSize = ( paf->iMark >= 0 )? (paf->iMark - paf->iPgOne) : 0;
4044 if( p->iMark < 0 || iOfst+iAmt > p->iMark ){
4069 sqlite3_int64 iMark;
4077 iMark = ((sqlite3_int64)(a[APND_MARK_PREFIX_SZ] & 0x7f)) << msbs;
4080 iMark |= (sqlite3_int64)a[APND_MARK_PREFIX_SZ+i]<<msbs;
4082 if( iMark > (sz - APND_MARK_SIZE - 512) ) return -1;
4083 if( iMark & 0x1ff ) return -1;
4084 return iMark;
4095 sqlite3_int64 iMark = apndReadMark(sz, pFile);
4096 if( iMark>=0 ){
4101 rc = pFile->pMethods->xRead(pFile, zHdr, sizeof(zHdr), iMark);
4154 pApndFile->iMark = -1; /* Append mark not yet written */
4174 pApndFile->iMark = sz - APND_MARK_SIZE; /* Append mark found */
4185 ** Until then, paf->iMark value indicates it is not yet written.