pub fn reference(&self, index: usize) -> Option<EntryID> {
        let reference_end = self.reference_bytes.len() - index * EntryID::SERIALIZED_SIZE;
        let bytes = &self.reference_bytes[reference_end - EntryID::SERIALIZED_SIZE..reference_end];
        if bytes.len() == EntryID::SERIALIZED_SIZE {
            Some(EntryID::from_le_bytes(bytes.try_into().unwrap()))
        } else {
            None
        }
    }
/// Gets the reference at the given index in the byte range.
Gets the reference at the given index in the byte range.
Gets the reference at the given index in the byte range .
pub fn reference(&self, index: usize) -> Option<EntryID> {
        let reference_end = self.reference_bytes.len() - index * EntryID::SERIALIZED_SIZE;
        let bytes = &self.reference_bytes[reference_end - EntryID::SERIALIZED_SIZE..reference_end];
        if bytes.len() == EntryID::SERIALIZED_SIZE {
            Some(EntryID::from_le_bytes(bytes.try_into().unwrap()))
        } else {
            None
        }
    }
pub fn reference ( & self , index : usize ) -> Option < EntryID > { let reference_end = self . reference_bytes . len ( ) - index * EntryID :: SERIALIZED_SIZE ; let bytes = & self . reference_bytes [ reference_end - EntryID :: SERIALIZED_SIZE .. reference_end ] ; if bytes . len ( ) == EntryID :: SERIALIZED_SIZE { Some ( EntryID :: from_le_bytes ( bytes . try_into ( ) . unwrap ( ) ) ) } else { None } }
Gets the reference at the given index in the byte range.
Gets the reference at the given index in the byte range .
&self
index
usize
&self
index
usize