pub struct PageHintEntry {
pub page_ref: ObjectRef,
pub first_object_index: u32,
pub object_count: u32,
pub byte_length: u64,
}Expand description
Per-page entry for the Page-offset hint table (Annex F.3).
Byte-length and exact object indices are filled in as placeholders (zeros) at construction time; a downstream writer pass must back-patch them once the real file positions are known.
Fields§
§page_ref: ObjectRefIndirect reference to the page’s dictionary object.
first_object_index: u32Index (0-based) of the first object belonging to this page in the object order that the linearized file will use.
object_count: u32Number of objects directly belonging to this page.
byte_length: u64Byte length of all objects belonging to this page (placeholder: 0).
Implementations§
Source§impl PageHintEntry
impl PageHintEntry
Sourcepub fn placeholder(page_ref: ObjectRef) -> Self
pub fn placeholder(page_ref: ObjectRef) -> Self
Construct a placeholder entry for page_ref.
Trait Implementations§
Source§impl Clone for PageHintEntry
impl Clone for PageHintEntry
Source§impl Debug for PageHintEntry
impl Debug for PageHintEntry
impl Eq for PageHintEntry
Source§impl PartialEq for PageHintEntry
impl PartialEq for PageHintEntry
impl StructuralPartialEq for PageHintEntry
Auto Trait Implementations§
impl Freeze for PageHintEntry
impl RefUnwindSafe for PageHintEntry
impl Send for PageHintEntry
impl Sync for PageHintEntry
impl Unpin for PageHintEntry
impl UnsafeUnpin for PageHintEntry
impl UnwindSafe for PageHintEntry
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