pub fn alloc_index(&mut self) -> Result<u32> {
        let index = self.chunk_count;

        // Rafs v6 only supports 24 bit chunk id.
        if index >= 0xff_ffff {
            Err(Error::msg(
                "the number of chunks in blob exceeds the u32 limit",
            ))
        } else {
            self.chunk_count += 1;
            Ok(index)
        }
    }
/// Allocate a count index sequentially in a blob.
Allocate a count index sequentially in a blob.
Allocate a count index sequentially in a blob .
pub fn alloc_index(&mut self) -> Result<u32> {
        let index = self.chunk_count;
        // Rafs v6 only supports 24 bit chunk id.
        if index >= 0xff_ffff {
            Err(Error::msg(
                "the number of chunks in blob exceeds the u32 limit",
            ))
        } else {
            self.chunk_count += 1;
            Ok(index)
        }
    }
pub fn alloc_index ( & mut self ) -> Result < u32 > { let index = self . chunk_count ; // Rafs v6 only supports 24 bit chunk id. if index >= 0xff_ffff { Err ( Error :: msg ( " " , ) ) } else { self . chunk_count += 1 ; Ok ( index ) } }
Allocate a count index sequentially in a blob.
Allocate a count index sequentially in a blob .
&mut self
&mut self