Lines Matching refs:aBuf
1254 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */ in walIndexRecover() local
1267 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0); in walIndexRecover()
1277 magic = sqlite3Get4byte(&aBuf[0]); in walIndexRecover()
1278 szPage = sqlite3Get4byte(&aBuf[8]); in walIndexRecover()
1288 pWal->nCkpt = sqlite3Get4byte(&aBuf[12]); in walIndexRecover()
1289 memcpy(&pWal->hdr.aSalt, &aBuf[16], 8); in walIndexRecover()
1293 aBuf, WAL_HDRSIZE-2*4, 0, pWal->hdr.aFrameCksum in walIndexRecover()
1295 if( pWal->hdr.aFrameCksum[0]!=sqlite3Get4byte(&aBuf[24]) in walIndexRecover()
1296 || pWal->hdr.aFrameCksum[1]!=sqlite3Get4byte(&aBuf[28]) in walIndexRecover()
1303 version = sqlite3Get4byte(&aBuf[4]); in walIndexRecover()
2516 u8 aBuf[WAL_HDRSIZE]; /* Buffer to load WAL header into */ in walBeginShmUnreliable() local
2593 rc = sqlite3OsRead(pWal->pWalFd, aBuf, WAL_HDRSIZE, 0); in walBeginShmUnreliable()
2597 if( memcmp(&pWal->hdr.aSalt, &aBuf[16], 8) ){ in walBeginShmUnreliable()
3558 u8 *aBuf; /* Buffer to load data from wal file into */ in walRewriteChecksums() local
3563 aBuf = sqlite3_malloc(szPage + WAL_FRAME_HDRSIZE); in walRewriteChecksums()
3564 if( aBuf==0 ) return SQLITE_NOMEM_BKPT; in walRewriteChecksums()
3577 rc = sqlite3OsRead(pWal->pWalFd, aBuf, sizeof(u32)*2, iCksumOff); in walRewriteChecksums()
3578 pWal->hdr.aFrameCksum[0] = sqlite3Get4byte(aBuf); in walRewriteChecksums()
3579 pWal->hdr.aFrameCksum[1] = sqlite3Get4byte(&aBuf[sizeof(u32)]); in walRewriteChecksums()
3585 rc = sqlite3OsRead(pWal->pWalFd, aBuf, szPage+WAL_FRAME_HDRSIZE, iOff); in walRewriteChecksums()
3588 iPgno = sqlite3Get4byte(aBuf); in walRewriteChecksums()
3589 nDbSize = sqlite3Get4byte(&aBuf[4]); in walRewriteChecksums()
3591 walEncodeFrame(pWal, iPgno, nDbSize, &aBuf[WAL_FRAME_HDRSIZE], aFrame); in walRewriteChecksums()
3596 sqlite3_free(aBuf); in walRewriteChecksums()