Struct sqlite_rs::btree::header::BtreePageHeader
source · pub struct BtreePageHeader { /* private fields */ }Expand description
B-tree Page Header Format (8 Bytes)
| Offset | Size | Description |
|---|---|---|
| 0 | 1 | The one-byte flag at offset 0 indicating the b-tree page type. |
| 1 | 2 | The two-byte integer at offset 1 gives the start of the first freeblock on the page, or is zero if there are no freeblocks. |
| 3 | 2 | The two-byte integer at offset 3 gives the number of cells on the page. |
| 5 | 2 | The two-byte integer at offset 5 designates the start of the cell content area. A zero value for this integer is interpreted as 65536. |
| 7 | 1 | The one-byte integer at offset 7 gives the number of fragmented free bytes within the cell content area. |
| 8 | 4 | The four-byte page number at offset 8 is the right-most pointer. This value appears in the header of interior b-tree pages only and is omitted from all other pages. |
Implementations§
source§impl BtreePageHeader
impl BtreePageHeader
pub fn page_type(&self) -> &BtreePageType
pub fn first_freeblock(&self) -> &BtreePageFirstFreeBlock
pub fn number_of_cells(&self) -> &BtreePageNumberOfCells
Trait Implementations§
source§impl Debug for BtreePageHeader
impl Debug for BtreePageHeader
source§impl PartialEq<BtreePageHeader> for BtreePageHeader
impl PartialEq<BtreePageHeader> for BtreePageHeader
source§fn eq(&self, other: &BtreePageHeader) -> bool
fn eq(&self, other: &BtreePageHeader) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&[u8]> for BtreePageHeader
impl TryFrom<&[u8]> for BtreePageHeader
impl Eq for BtreePageHeader
impl StructuralEq for BtreePageHeader
impl StructuralPartialEq for BtreePageHeader
Auto Trait Implementations§
impl RefUnwindSafe for BtreePageHeader
impl Send for BtreePageHeader
impl Sync for BtreePageHeader
impl Unpin for BtreePageHeader
impl UnwindSafe for BtreePageHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more