Function fuel_types::bytes::restore_number
source · pub fn restore_number<T>(buf: &[u8]) -> Result<(T, &[u8])>where
T: From<Word>,
Expand description
Attempt to read a word-aligned number stored in the buffer.
Return the readon number and the remainder buffer, if successful.