pub fn seek(&self, pos: SeekFrom) -> LxResult<u64> {
        let mut inner = self.inner.write();
        inner.offset = match pos {
            SeekFrom::Start(offset) => offset,
            SeekFrom::End(offset) => (inner.inode.metadata()?.size as i64 + offset) as u64,
            SeekFrom::Current(offset) => (inner.offset as i64 + offset) as u64,
        };
        Ok(inner.offset)
    }
/// seek from given type and offset
seek from given type and offset
seek from given type and offset
pub fn seek(&self, pos: SeekFrom) -> LxResult<u64> {
        let mut inner = self.inner.write();
        inner.offset = match pos {
            SeekFrom::Start(offset) => offset,
            SeekFrom::End(offset) => (inner.inode.metadata()?.size as i64 + offset) as u64,
            SeekFrom::Current(offset) => (inner.offset as i64 + offset) as u64,
        };
        Ok(inner.offset)
    }
pub fn seek ( & self , pos : SeekFrom ) -> LxResult < u64 > { let mut inner = self . inner . write ( ) ; inner . offset = match pos { SeekFrom :: Start ( offset ) => offset , SeekFrom :: End ( offset ) => ( inner . inode . metadata ( ) ? . size as i64 + offset ) as u64 , SeekFrom :: Current ( offset ) => ( inner . offset as i64 + offset ) as u64 , } ; Ok ( inner . offset ) }
seek from given type and offset
seek from given type and offset
&self
pos
SeekFrom
&self
pos
SeekFrom