pub fn little_u64<'a>(data: &'a [u8]) -> ByteResult<'a, u64> {
    combinator::map(
        bytes::complete::take(8usize),
        |b: &[u8]| {
            let mut x: u64 = 0;
            for i in 0..8 {
                let i = 7 - i;
                x |= (b[i] as u64) << (8 * i);
            }

            x
        })
        (data)
}
/// Parse a u64 from a little-endian representation in bytes.
Parse a u64 from a little-endian representation in bytes.
Parse a u64 from a little - endian representation in bytes .
pub fn little_u64<'a>(data: &'a [u8]) -> ByteResult<'a, u64> {
    combinator::map(
        bytes::complete::take(8usize),
        |b: &[u8]| {
            let mut x: u64 = 0;
            for i in 0..8 {
                let i = 7 - i;
                x |= (b[i] as u64) << (8 * i);
            }
            x
        })
        (data)
}
pub fn little_u64 < ' a > ( data : & ' a [ u8 ] ) -> ByteResult < ' a , u64 > { combinator :: map ( bytes :: complete :: take ( 8usize ) , | b : & [ u8 ] | { let mut x : u64 = 0 ; for i in 0 .. 8 { let i = 7 - i ; x |= ( b [ i ] as u64 ) << ( 8 * i ) ; } x } ) ( data ) }
Parse a u64 from a little-endian representation in bytes.
Parse a u64 from a little - endian representation in bytes .
data
&'a [u8]
data
&'a [u8]