pub struct SplitChunk {
pub header: ChunkHeader,
pub offset: usize,
pub size: usize,
}Expand description
A definition of one chunk of a split image; When writing out or downloading to a device the (chunk) header should be written out first followed by size bytes from the original file from offset (in bytes) onwards
Fields§
§header: ChunkHeaderChunk header
offset: usizeOffset in the input file for the chunk data
size: usizeAmount of data to be copied from the input file (in bytes)
Trait Implementations§
Source§impl Clone for SplitChunk
impl Clone for SplitChunk
Source§fn clone(&self) -> SplitChunk
fn clone(&self) -> SplitChunk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitChunk
impl Debug for SplitChunk
Source§impl PartialEq for SplitChunk
impl PartialEq for SplitChunk
impl Eq for SplitChunk
impl StructuralPartialEq for SplitChunk
Auto Trait Implementations§
impl Freeze for SplitChunk
impl RefUnwindSafe for SplitChunk
impl Send for SplitChunk
impl Sync for SplitChunk
impl Unpin for SplitChunk
impl UnwindSafe for SplitChunk
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