pub fn load(&mut self, r: &mut RafsIoReader, count: usize) -> Result<()> {
        let mut entries = Vec::<RafsV5ExtBlobEntry>::with_capacity(count);
        // Safe because it is already reserved enough space
        let (_, mut data, _) = unsafe {
            entries.set_len(count);
            (&mut entries).align_to_mut::<u8>()
        };

        r.read_exact(&mut data)?;
        self.entries = entries.to_vec().into_iter().map(Arc::new).collect();

        Ok(())
    }
/// Load extended blob information table from a reader.
Load extended blob information table from a reader.
Load extended blob information table from a reader .
pub fn load(&mut self, r: &mut RafsIoReader, count: usize) -> Result<()> {
        let mut entries = Vec::<RafsV5ExtBlobEntry>::with_capacity(count);
        // Safe because it is already reserved enough space
        let (_, mut data, _) = unsafe {
            entries.set_len(count);
            (&mut entries).align_to_mut::<u8>()
        };
        r.read_exact(&mut data)?;
        self.entries = entries.to_vec().into_iter().map(Arc::new).collect();
        Ok(())
    }
pub fn load ( & mut self , r : & mut RafsIoReader , count : usize ) -> Result < ( ) > { let mut entries = Vec :: < RafsV5ExtBlobEntry > :: with_capacity ( count ) ; // Safe because it is already reserved enough space let ( _ , mut data , _ ) = unsafe { entries . set_len ( count ) ; ( & mut entries ) . align_to_mut :: < u8 > ( ) } ; r . read_exact ( & mut data ) ? ; self . entries = entries . to_vec ( ) . into_iter ( ) . map ( Arc :: new ) . collect ( ) ; Ok ( ( ) ) }
Load extended blob information table from a reader.
Load extended blob information table from a reader .
&mut self
r
&mut RafsIoReader
count
usize
&mut self
r
&mut RafsIoReader
count
usize