comment about page header size difference between page types

This commit is contained in:
jussisaurio
2024-12-23 22:18:22 +02:00
parent 9ea4c95ee1
commit 668a0ecae8

View File

@@ -524,6 +524,8 @@ impl PageContent {
let buf = self.as_ptr();
let ncells = self.cell_count();
// the page header is 12 bytes for interior pages, 8 bytes for leaf pages
// this is because the 4 last bytes in the interior page's header are used for the rightmost pointer.
let cell_start = match self.page_type() {
PageType::IndexInterior => 12,
PageType::TableInterior => 12,
@@ -545,7 +547,6 @@ impl PageContent {
)
}
/// When using this fu
pub fn cell_get_raw_pointer_region(&self) -> (usize, usize) {
let cell_start = match self.page_type() {
PageType::IndexInterior => 12,