/// Without validation, write this instance to the byte stream.
Without validation, write this instance to the byte stream.
Without validation write this instance to the byte stream .
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult {
        debug_assert_ne!(self.compressed_sample_data.len(), 0, "empty blocks should not be put in the file bug");
        i32::write(self.y_coordinate, write)?;
        u64::write(self.compressed_pixel_offset_table.len() as u64, write)?;
        u64::write(self.compressed_sample_data.len() as u64, write)?; // TODO just guessed
        u64::write(self.decompressed_sample_data_size as u64, write)?;
        i8::write_slice(write, &self.compressed_pixel_offset_table)?;
        u8::write_slice(write, &self.compressed_sample_data)?;
        Ok(())
    }
pub fn write < W : Write > ( & self , write : & mut W ) -> UnitResult { debug_assert_ne ! ( self compressed_sample_data len ( ) 0 " " ) ; i32 :: write ( self . y_coordinate , write ) ? ; u64 :: write ( self . compressed_pixel_offset_table . len ( ) as u64 , write ) ? ; u64 :: write ( self . compressed_sample_data . len ( ) as u64 , write ) ? ; // TODO just guessed u64 :: write ( self . decompressed_sample_data_size as u64 , write ) ? ; i8 :: write_slice ( write , & self . compressed_pixel_offset_table ) ? ; u8 :: write_slice ( write , & self . compressed_sample_data ) ? ; Ok ( ( ) ) }
Without validation, write this instance to the byte stream.
Without validation write this instance to the byte stream .
&self
write
&mut W