pub fn from_slice(
        slice: &[u8],
        used_entries: u32,
    ) -> Result<Vec<MetaDataIndexEntry>, MetaDataError> {
        let mut index: Vec<MetaDataIndexEntry> = Vec::new();
        let mut reader = Cursor::new(slice);
        for _ in 0 .. used_entries {
            index.push(
                deserialize_from(&mut reader).context(DeserializeError {})?,
            );
        }
        Ok(index)
    }
/// Convert a slice into an index array
Convert a slice into an index array
Convert a slice into an index array
pub fn from_slice(
        slice: &[u8],
        used_entries: u32,
    ) -> Result<Vec<MetaDataIndexEntry>, MetaDataError> {
        let mut index: Vec<MetaDataIndexEntry> = Vec::new();
        let mut reader = Cursor::new(slice);
        for _ in 0 .. used_entries {
            index.push(
                deserialize_from(&mut reader).context(DeserializeError {})?,
            );
        }
        Ok(index)
    }
pub fn from_slice ( slice : & [ u8 ] , used_entries : u32 , ) -> Result < Vec < MetaDataIndexEntry > , MetaDataError > { let mut index : Vec < MetaDataIndexEntry > = Vec :: new ( ) ; let mut reader = Cursor :: new ( slice ) ; for _ in 0 .. used_entries { index . push ( deserialize_from ( & mut reader ) . context ( DeserializeError { } ) ? , ) ; } Ok ( index ) }
Convert a slice into an index array
Convert a slice into an index array
slice
&[u8]
used_entries
u32