pub struct XorbBlockData {
pub chunk_offsets: Vec<(usize, usize)>,
pub data: Bytes,
}Expand description
Downloaded and decompressed data for a xorb block, including chunk boundary offsets.
A single XorbBlockData may hold data from multiple disjoint chunk ranges
(V2 multi-range fetch). The chunks are concatenated in range order, and
chunk_offsets maps each chunk index to its byte position within data.
Fields§
§chunk_offsets: Vec<(usize, usize)>Pairs of (chunk_index, byte_offset) mapping each chunk to its start position
within data. Because the block can span multiple disjoint chunk ranges,
storing the chunk index alongside the offset avoids ambiguity.
data: BytesThe concatenated decompressed chunk data for all ranges in this block.
Auto Trait Implementations§
impl !Freeze for XorbBlockData
impl RefUnwindSafe for XorbBlockData
impl Send for XorbBlockData
impl Sync for XorbBlockData
impl Unpin for XorbBlockData
impl UnsafeUnpin for XorbBlockData
impl UnwindSafe for XorbBlockData
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
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more