Function fuel_types::bytes::store_number

source ·
pub fn store_number<T>(buf: &mut [u8], number: T) -> Result<(usize, &mut [u8])>where
    T: Into<Word>,
Expand description

Convert a number to a word, store it in the buffer, and return a tuple containing the number of written bytes and the remainder of the buffer.