/// Converts a block to an EXTENT block.
Converts a block to an EXTENT block.
Converts a block to an EXTENT block .
pub fn become_extent(&self, next_extent_index: u32) -> Result<(), Error> {
        self.check_type(BlockType::Reserved)?;
        let mut header = self.read_header();
        header.set_block_type(BlockType::Extent.to_u8().unwrap());
        header.set_extent_next_index(next_extent_index);
        self.write_header(header);
        Ok(())
    }
pub fn become_extent ( & self , next_extent_index : u32 ) -> Result < ( ) , Error > { self . check_type ( BlockType :: Reserved ) ? ; let mut header = self . read_header ( ) ; header . set_block_type ( BlockType :: Extent . to_u8 ( ) . unwrap ( ) ) ; header . set_extent_next_index ( next_extent_index ) ; self . write_header ( header ) ; Ok ( ( ) ) }
Converts a block to an EXTENT block.
Converts a block to an EXTENT block .
&self
next_extent_index
u32