fn convert_bytes_to_u64(bytes: &[u8]) -> u64 {
        debug_assert!(bytes.len() == 8);
        let mut buffer = [0; 8];
        for (n, b) in bytes.iter().enumerate() {
            buffer[n] = *b;
        }
        unsafe { mem::transmute(buffer) }
    }
/// Should not be used generally since it not varint. Used for header fields
/// since only one header is in the database it's not a problem with excess size.
Should not be used generally since it not varint. Used for header fields
since only one header is in the database it's not a problem with excess size.
Should not be used generally since it not varint . Used for header fields since only one header is in the database it ' s not a problem with excess size .
fn convert_bytes_to_u64(bytes: &[u8]) -> u64 {
        debug_assert!(bytes.len() == 8);
        let mut buffer = [0; 8];
        for (n, b) in bytes.iter().enumerate() {
            buffer[n] = *b;
        }
        unsafe { mem::transmute(buffer) }
    }
fn convert_bytes_to_u64 ( bytes : & [ u8 ] ) -> u64 { debug_assert ! ( bytes len ( ) 8 ) ; let mut buffer = [ 0 ; 8 ] ; for ( n , b ) in bytes . iter ( ) . enumerate ( ) { buffer [ n ] = * b ; } unsafe { mem :: transmute ( buffer ) } }
Should not be used generally since it not varint.
Should not be used generally since it not varint .
bytes
&[u8]
bytes
&[u8]