pub fn seek_buffered(&mut self, pos: u64) -> u64 {
        let old_pos = self.pos();

        // Forward seek.
        let delta = if pos > old_pos {
            assert!(pos - old_pos < std::isize::MAX as u64);
            (pos - old_pos) as isize
        }
        else if pos < old_pos {
            // Backward seek.
            assert!(old_pos - pos < std::isize::MAX as u64);
            -((old_pos - pos) as isize)
        }
        else {
            0
        };

        self.seek_buffered_rel(delta)
    }
/// Seek within the buffered data to an absolute position in the stream.
Seek within the buffered data to an absolute position in the stream.
Seek within the buffered data to an absolute position in the stream .
pub fn seek_buffered(&mut self, pos: u64) -> u64 {
        let old_pos = self.pos();
        // Forward seek.
        let delta = if pos > old_pos {
            assert!(pos - old_pos < std::isize::MAX as u64);
            (pos - old_pos) as isize
        }
        else if pos < old_pos {
            // Backward seek.
            assert!(old_pos - pos < std::isize::MAX as u64);
            -((old_pos - pos) as isize)
        }
        else {
            0
        };
        self.seek_buffered_rel(delta)
    }
pub fn seek_buffered ( & mut self , pos : u64 ) -> u64 { let old_pos = self . pos ( ) ; // Forward seek. let delta = if pos > old_pos { assert ! ( pos old_pos std isize MAX as u64 ) ; ( pos - old_pos ) as isize } else if pos < old_pos { // Backward seek. assert ! ( old_pos pos std isize MAX as u64 ) ; - ( ( old_pos - pos ) as isize ) } else { 0 } ; self . seek_buffered_rel ( delta ) }
Seek within the buffered data to an absolute position in the stream.
Seek within the buffered data to an absolute position in the stream .
&mut self
pos
u64
&mut self
pos
u64