pub struct BlockData {
pub blocks: Vec<Block>,
pub tables: Vec<Table>,
}Expand description
The external payload of an offscreen.
Fields§
§blocks: Vec<Block>One record per block of the grid.
tables: Vec<Table>The tables after the blocks.
Implementations§
Source§impl BlockData
impl BlockData
Sourcepub fn checksum_mismatches(&self) -> Vec<u32>
pub fn checksum_mismatches(&self) -> Vec<u32>
Block indexes whose stored checksum does not match their data.
Sourcepub fn from_raw_blocks(
raw_blocks: &[Option<Vec<u8>>],
raw_size: usize,
) -> Result<Self>
pub fn from_raw_blocks( raw_blocks: &[Option<Vec<u8>>], raw_size: usize, ) -> Result<Self>
Build from decompressed blocks (None = not stored), compressing as CSP does.
Sourcepub fn record_sizes(&self) -> Vec<u32>
pub fn record_sizes(&self) -> Vec<u32>
Record length of every block, for the BlockSize section.
Trait Implementations§
impl Eq for BlockData
impl StructuralPartialEq for BlockData
Auto Trait Implementations§
impl Freeze for BlockData
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnsafeUnpin for BlockData
impl UnwindSafe for BlockData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.