Home
last modified time | relevance | path

Searched refs:nHdr (Results 1 – 11 of 11) sorted by relevance

/sqlite-3.40.0/ext/recover/
H A Ddbdata.c110 sqlite3_int64 nHdr; /* Size of header in bytes */ member
539 sqlite3_int64 nHdr = 0; in dbdataNext() local
644 iHdr = dbdataGetVarintU32(pCsr->pRec, &nHdr); in dbdataNext()
645 if( nHdr>nPayload ) nHdr = 0; in dbdataNext()
646 pCsr->nHdr = nHdr; in dbdataNext()
648 pCsr->pPtr = &pCsr->pRec[pCsr->nHdr]; in dbdataNext()
673 if( pCsr->iField<0 || pCsr->pHdrPtr<&pCsr->pRec[pCsr->nHdr] ){ in dbdataNext()
/sqlite-3.40.0/src/
H A Ddbstat.c396 int nHdr; in statDecodePage() local
406 nHdr = 8; in statDecodePage()
409 nHdr = 12; in statDecodePage()
413 if( p->iPgno==1 ) nHdr += 100; in statDecodePage()
418 nUnused = get2byte(&aHdr[5]) - nHdr - 2*p->nCell; in statDecodePage()
446 iOff = get2byte(&aData[nHdr+i*2]); in statDecodePage()
447 if( iOff<nHdr || iOff>=szPage ) goto statPageIsCorrupt; in statDecodePage()
H A Dtest_func.c483 u64 nHdr; /* Bytes in record header */ in test_extract() local
491 pHdr = pRec + sqlite3GetVarint(pRec, &nHdr); in test_extract()
492 pBody = pEndHdr = &pRec[nHdr]; in test_extract()
531 u64 nHdr; /* Bytes in record header */ in test_decode() local
540 pHdr = pRec + sqlite3GetVarint(pRec, &nHdr); in test_decode()
541 pBody = pEndHdr = &pRec[nHdr]; in test_decode()
H A Dvdbemem.c1883 int nHdr; /* Size of the header in the record */ in sqlite3Stat4Column() local
1892 iHdr = getVarint32(a, nHdr); in sqlite3Stat4Column()
1893 if( nHdr>nRec || iHdr>=nHdr ) return SQLITE_CORRUPT_BKPT; in sqlite3Stat4Column()
1894 iField = nHdr; in sqlite3Stat4Column()
1897 testcase( iHdr==nHdr ); in sqlite3Stat4Column()
1898 testcase( iHdr==nHdr+1 ); in sqlite3Stat4Column()
1899 if( iHdr>nHdr ) return SQLITE_CORRUPT_BKPT; in sqlite3Stat4Column()
H A Dvdbe.c3379 nHdr++; in sqlite3VdbeExec()
3391 nHdr++; in sqlite3VdbeExec()
3431 nHdr++; in sqlite3VdbeExec()
3460 testcase( nHdr==126 ); in sqlite3VdbeExec()
3462 if( nHdr<=126 ){ in sqlite3VdbeExec()
3464 nHdr += 1; in sqlite3VdbeExec()
3468 nHdr += nVarint; in sqlite3VdbeExec()
3469 if( nVarint<sqlite3VarintLen(nHdr) ) nHdr++; in sqlite3VdbeExec()
3471 nByte = nHdr+nData; in sqlite3VdbeExec()
3503 if( nHdr<0x80 ){ in sqlite3VdbeExec()
[all …]
H A Dwal.c1326 u32 nHdr, nHdr32; in walIndexRecover() local
1357 nHdr = (iPg==0 ? WALINDEX_HDR_SIZE : 0); in walIndexRecover()
1358 nHdr32 = nHdr / sizeof(u32); in walIndexRecover()
1368 memcpy(&aShare[nHdr32], &aPrivate[nHdr32], WALINDEX_PGSZ-nHdr); in walIndexRecover()
/sqlite-3.40.0/tool/
H A Doffsets.c247 int nHdr; in ofstWalkLeafPage() local
266 nHdr = ofstVarint(p, &ofst); in ofstWalkLeafPage()
267 dataOfst += nHdr; in ofstWalkLeafPage()
H A Dshowdb.c500 i64 nHdr; in decodeCell() local
540 i = decodeVarint(x, &nHdr); in decodeCell()
542 printf("record-header-size: %d\n", (int)nHdr); in decodeCell()
545 k = nHdr; in decodeCell()
546 while( x+j<=end && j<nHdr ){ in decodeCell()
/sqlite-3.40.0/test/
H A Dwal2.test40 # Set $nHdr to the number of bytes in the wal-index header:
41 set nHdr 48
42 set nInt [expr {$nHdr/4}]
57 binary scan $blob a[expr $nHdr*2]a* dummy tail
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_sorted.c3958 int nHdr; /* Space required for this record header */ in mergeWorkerWrite() local
4000 nHdr = 1 + lsmVarintLen32(iRPtr) + lsmVarintLen32(nKey); in mergeWorkerWrite()
4001 if( rtIsWrite(eType) ) nHdr += lsmVarintLen32(nVal); in mergeWorkerWrite()
4006 if( iOff<0 || pPg==0 || iOff+nHdr > SEGMENT_EOF(nData, nRec+1) ){ in mergeWorkerWrite()
/sqlite-3.40.0/ext/session/
H A Dsqlite3session.c2282 int nHdr = 1 + sessionVarintGet(&pCsr[1], &n); in sessionAppendUpdate() local
2284 nAdvance = nHdr + n; in sessionAppendUpdate()
2287 && (n==0 || 0==memcmp(&pCsr[nHdr], sqlite3_column_blob(pStmt, i), n)) in sessionAppendUpdate()