Lines Matching defs:aFrame
64188 u8 *aFrame /* OUT: Write encoded frame here */
64193 sqlite3Put4byte(&aFrame[0], iPage);
64194 sqlite3Put4byte(&aFrame[4], nTruncate);
64196 memcpy(&aFrame[8], pWal->hdr.aSalt, 8);
64199 walChecksumBytes(nativeCksum, aFrame, 8, aCksum, aCksum);
64202 sqlite3Put4byte(&aFrame[16], aCksum[0]);
64203 sqlite3Put4byte(&aFrame[20], aCksum[1]);
64205 memset(&aFrame[8], 0, 16);
64210 ** Check to see if the frame with header in aFrame[] and content
64219 u8 *aFrame /* Frame data */
64229 if( memcmp(&pWal->hdr.aSalt, &aFrame[8], 8)!=0 ){
64235 pgno = sqlite3Get4byte(&aFrame[0]);
64246 walChecksumBytes(nativeCksum, aFrame, 8, aCksum, aCksum);
64248 if( aCksum[0]!=sqlite3Get4byte(&aFrame[16])
64249 || aCksum[1]!=sqlite3Get4byte(&aFrame[20])
64259 *pnTruncate = sqlite3Get4byte(&aFrame[4]);
64617 u8 *aFrame = 0; /* Malloc'd buffer to load entire frame */
64618 int szFrame; /* Number of bytes in buffer aFrame[] */
64619 u8 *aData; /* Pointer to data part of aFrame buffer */
64672 aFrame = (u8 *)sqlite3_malloc64(szFrame + WALINDEX_PGSZ);
64673 if( !aFrame ){
64677 aData = &aFrame[WAL_FRAME_HDRSIZE];
64699 rc = sqlite3OsRead(pWal->pWalFd, aFrame, szFrame, iOffset);
64701 isValid = walDecodeFrame(pWal, &pgno, &nTruncate, aData, aFrame);
64751 sqlite3_free(aFrame);
65882 u8 *aFrame = 0; /* Malloc'd buffer to load entire frame */
65883 int szFrame; /* Number of bytes in buffer aFrame[] */
65884 u8 *aData; /* Pointer to data part of aFrame buffer */
65974 aFrame = (u8 *)sqlite3_malloc64(szFrame);
65975 if( aFrame==0 ){
65979 aData = &aFrame[WAL_FRAME_HDRSIZE];
65995 rc = sqlite3OsRead(pWal->pWalFd, aFrame, szFrame, iOffset);
65997 if( !walDecodeFrame(pWal, &pgno, &nTruncate, aData, aFrame) ) break;
66011 sqlite3_free(aFrame);
66906 u8 aFrame[WAL_FRAME_HDRSIZE]; /* Buffer to assemble frame-header in */
66916 walEncodeFrame(p->pWal, pPage->pgno, nTruncate, pData, aFrame);
66917 rc = walWriteToLog(p, aFrame, sizeof(aFrame), iOffset);
66920 rc = walWriteToLog(p, pData, p->szPage, iOffset+sizeof(aFrame));
66936 u8 aFrame[WAL_FRAME_HDRSIZE]; /* Buffer to assemble frame-headers in */
66968 walEncodeFrame(pWal, iPgno, nDbSize, &aBuf[WAL_FRAME_HDRSIZE], aFrame);
66969 rc = sqlite3OsWrite(pWal->pWalFd, aFrame, sizeof(aFrame), iOff);
209211 u32 iMaxFrame; /* Largest iWalFrame value in aFrame[] */
209213 int nFrame; /* Entries in aFrame[] array */
209214 int nFrameAlloc; /* Allocated size of aFrame[] array */
209215 RbuFrame *aFrame;
211801 ** It populates the sqlite3rbu.aFrame[] array with the set of
211835 ** would be read/written are recorded in the sqlite3rbu.aFrame[]
211847 ** checkpoint below fails with SQLITE_INTERNAL, and leaves the aFrame[]
211851 ** contents of aFrame[].
211895 ** being read in the aFrame[] array.
211910 aNew = (RbuFrame*)sqlite3_realloc64(pRbu->aFrame, nNew * sizeof(RbuFrame));
211912 pRbu->aFrame = aNew;
211918 pRbu->aFrame[pRbu->nFrame].iWalFrame = iFrame;
211919 pRbu->aFrame[pRbu->nFrame].iDbPage = 0;
211927 ** of the page being written in the aFrame[] array.
211930 pRbu->aFrame[pRbu->nFrame-1].iDbPage = (u32)(iOff / pRbu->pgsz) + 1;
212558 ** this by checkpointing frames until the next page in the aFrame[]
212562 RbuFrame *pFrame = &p->aFrame[p->nStep];
212567 && iSector==((p->aFrame[p->nStep].iDbPage-1) / p->nPagePerSector)
213058 sqlite3_free(p->aFrame);