pub struct ParamSot { /* private fields */ }Expand description
SOT marker segment — start of tile-part header.
Contains the tile index, tile-part length, tile-part index, and total number of tile-parts.
Implementations§
Source§impl ParamSot
impl ParamSot
pub fn init( &mut self, payload_length: u32, tile_idx: u16, tile_part_index: u8, num_tile_parts: u8, )
pub fn get_tile_index(&self) -> u16
pub fn get_payload_length(&self) -> u32
pub fn get_tile_part_index(&self) -> u8
pub fn get_num_tile_parts(&self) -> u8
pub fn write( &mut self, file: &mut dyn OutfileBase, payload_len: u32, ) -> Result<bool>
pub fn read( &mut self, file: &mut dyn InfileBase, resilient: bool, ) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSot
impl RefUnwindSafe for ParamSot
impl Send for ParamSot
impl Sync for ParamSot
impl Unpin for ParamSot
impl UnsafeUnpin for ParamSot
impl UnwindSafe for ParamSot
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