pub fn read_u64(&mut self) -> u64 {
        self.flush_bit();
        assert!(self.rpos + 8 <= self.data.len());
        let range = self.rpos..self.rpos + 8;
        self.rpos += 8;
        BigEndian::read_u64(&self.data[range])
    }
/// Read an eight bytes long value. The program crash if not enough bytes are available
///
/// #Example
///
/// ```
/// #  use databuffer::*;
/// let mut buffer = DataBuffer::from_bytes(&vec![0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1]);
/// let value = buffer.read_u64(); //Value contains 1
/// ```
Read an eight bytes long value. The program crash if not enough bytes are available
Read an eight bytes long value . The program crash if not enough bytes are available
pub fn read_u64(&mut self) -> u64 {
        self.flush_bit();
        assert!(self.rpos + 8 <= self.data.len());
        let range = self.rpos..self.rpos + 8;
        self.rpos += 8;
        BigEndian::read_u64(&self.data[range])
    }
pub fn read_u64 ( & mut self ) -> u64 { self . flush_bit ( ) ; assert ! ( self rpos 8 self data len ( ) ) ; let range = self . rpos .. self . rpos + 8 ; self . rpos += 8 ; BigEndian :: read_u64 ( & self . data [ range ] ) }
Read an eight bytes long value.
Read an eight bytes long value .
&mut self
example
None
use databuffer::*;
None