more TDB
This commit is contained in:
parent
8702b2a996
commit
bae83e0ede
|
@ -60,7 +60,9 @@ struct SPage {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Macros
|
// Macros
|
||||||
#define TDB_PAGE_CELL_OFFSET_AT(pPage, idx) ((pPage)->aCellIdx[idx])
|
#define TDB_PAGE_CELL_OFFSET_AT(pPage, idx) \
|
||||||
|
(((pPage)->szOffset == 2) ? ((u16 *)((pPage)->aCellIdx))[idx] \
|
||||||
|
: ((pPage)->aCellIdx[idx * 3] * 65536 + *(u16 *)((pPage)->aCellIdx + idx * 3 + 1)))
|
||||||
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_OFFSET_AT(pPage, idx))
|
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_OFFSET_AT(pPage, idx))
|
||||||
|
|
||||||
// For page lock
|
// For page lock
|
||||||
|
|
Loading…
Reference in New Issue