mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-16 21:44:24 +01:00
Split into two methods
This commit is contained in:
committed by
Jussi Saurio
parent
8f4ea280ae
commit
785c3fdb03
@@ -666,8 +666,14 @@ impl PageContent {
|
||||
/// - left-most cell (the cell with the smallest key) first and
|
||||
/// - the right-most cell (the cell with the largest key) last.
|
||||
pub fn cell_pointer_array_offset_and_size(&self) -> (usize, usize) {
|
||||
let header_size = self.header_size();
|
||||
(self.offset + header_size, self.cell_pointer_array_size())
|
||||
(
|
||||
self.cell_pointer_array_offset(),
|
||||
self.cell_pointer_array_size(),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn cell_pointer_array_offset(&self) -> usize {
|
||||
self.offset + self.header_size()
|
||||
}
|
||||
|
||||
/// Get region(start end length) of a cell's payload
|
||||
|
||||
Reference in New Issue
Block a user