blob: 70c5f0198681afa0455fadbff4781dcb9de12565 [file]
#[derive(Debug)]
pub struct Index {
pub relative_offset: u32,
pub position: u32,
}
#[derive(Debug)]
pub struct IndexRange {
pub start: Index,
pub end: Index,
}
impl IndexRange {
pub fn max_range() -> Self {
Self {
start: Index {
relative_offset: 0,
position: 0,
},
end: Index {
relative_offset: u32::MAX - 1,
position: u32::MAX,
},
}
}
}