pub(crate) fn read_i64(&mut self) -> Result<i64> {
        if self.buf.len() < 8 {
            return Err(Error::InvalidInput("not enough buffer to read 64bit Int".to_owned()));
        }
        let val = i64::from_be_bytes([
            self.buf[0],
            self.buf[1],
            self.buf[2],
            self.buf[3],
            self.buf[4],
            self.buf[5],
            self.buf[6],
            self.buf[7],
        ]);
        self.advance(8);
        Ok(val)
    }
/// Reads the next 64-bit signed integer, advancing the cursor by eight
/// bytes.
Reads the next 64-bit signed integer, advancing the cursor by eight
bytes.
Reads the next 64 - bit signed integer advancing the cursor by eight bytes .
pub(crate) fn read_i64(&mut self) -> Result<i64> {
        if self.buf.len() < 8 {
            return Err(Error::InvalidInput("not enough buffer to read 64bit Int".to_owned()));
        }
        let val = i64::from_be_bytes([
            self.buf[0],
            self.buf[1],
            self.buf[2],
            self.buf[3],
            self.buf[4],
            self.buf[5],
            self.buf[6],
            self.buf[7],
        ]);
        self.advance(8);
        Ok(val)
    }
pub ( crate ) fn read_i64 ( & mut self ) -> Result < i64 > { if self . buf . len ( ) < 8 { return Err ( Error :: InvalidInput ( " " . to_owned ( ) ) ) ; } let val = i64 :: from_be_bytes ( [ self . buf [ 0 ] , self . buf [ 1 ] , self . buf [ 2 ] , self . buf [ 3 ] , self . buf [ 4 ] , self . buf [ 5 ] , self . buf [ 6 ] , self . buf [ 7 ] , ] ) ; self . advance ( 8 ) ; Ok ( val ) }
Reads the next 64-bit signed integer, advancing the cursor by eight
bytes.
Reads the next 64 - bit signed integer advancing the cursor by eight bytes .
&mut self
&mut self