Function monero_epee_bin_serde::from_bytes[][src]

pub fn from_bytes<T, B>(bytes: B) -> Result<T> where
    T: DeserializeOwned,
    B: AsRef<[u8]>, 

Deserialize the provided bytes.

This function assumes that the bytes are prepended with the magic header and will fail otherwise.