pub fn from_bytes(bytes: &[u8]) -> Result<EntryId> {
        if bytes.len() != ENTRY_ID_SIZE {
            let msg = format!("entry ID too small: {}", bytes.len());
            return Err(ErrorKind::ParseFailure(msg).into());
        }

        Ok(EntryId(NativeEndian::read_u64(bytes)))
    }
/// Deserialize an `EntryID` from a host native byte format
Deserialize an `EntryID` from a host native byte format
Deserialize an ` EntryID ` from a host native byte format
pub fn from_bytes(bytes: &[u8]) -> Result<EntryId> {
        if bytes.len() != ENTRY_ID_SIZE {
            let msg = format!("entry ID too small: {}", bytes.len());
            return Err(ErrorKind::ParseFailure(msg).into());
        }
        Ok(EntryId(NativeEndian::read_u64(bytes)))
    }
pub fn from_bytes ( bytes : & [ u8 ] ) -> Result < EntryId > { if bytes . len ( ) != ENTRY_ID_SIZE { let msg = format ! ( " " bytes len ( ) ) ; return Err ( ErrorKind :: ParseFailure ( msg ) . into ( ) ) ; } Ok ( EntryId ( NativeEndian :: read_u64 ( bytes ) ) ) }
Deserialize an `EntryID` from a host native byte format
Deserialize an ` EntryID ` from a host native byte format
bytes
&[u8]
bytes
&[u8]