Lines Matching refs:iMark
6275 ** iPgOne iMark
6286 ** The size of the database is iMark - iPgOne.
6291 ** iMark will be the size of the underlying file minus 25 (APND_MARKSIZE).
6292 ** Or, iMark is -1 to indicate that it has not yet been written.
6297 sqlite3_int64 iMark; /* Offset of the append mark. -1 if unwritten */
6414 * If and only if this succeeds, internal ApndFile.iMark is updated.
6435 paf->iMark = iWriteEnd;
6454 if( paf->iMark < 0 || paf->iPgOne + iWriteEnd > paf->iMark ){
6470 return pFile->pMethods->xTruncate(pFile, paf->iMark+APND_MARK_SIZE);
6487 *pSize = ( paf->iMark >= 0 )? (paf->iMark - paf->iPgOne) : 0;
6584 if( p->iMark < 0 || iOfst+iAmt > p->iMark ){
6609 sqlite3_int64 iMark;
6617 iMark = ((sqlite3_int64)(a[APND_MARK_PREFIX_SZ] & 0x7f)) << msbs;
6620 iMark |= (sqlite3_int64)a[APND_MARK_PREFIX_SZ+i]<<msbs;
6622 if( iMark > (sz - APND_MARK_SIZE - 512) ) return -1;
6623 if( iMark & 0x1ff ) return -1;
6624 return iMark;
6635 sqlite3_int64 iMark = apndReadMark(sz, pFile);
6636 if( iMark>=0 ){
6641 rc = pFile->pMethods->xRead(pFile, zHdr, sizeof(zHdr), iMark);
6694 pApndFile->iMark = -1; /* Append mark not yet written */
6716 pApndFile->iMark = sz - APND_MARK_SIZE; /* Append mark found */
6727 ** Until then, paf->iMark value indicates it is not yet written.