Lines Matching refs:offset
91 offset: usize, field
110 offset: 0, in new()
137 if self.offset > self.inode.metadata()?.size as usize { in read()
143 .read_at(self.offset, len, buf, &mut self.private_data)?; in read()
144 self.offset += len; in read()
164 if self.offset > file_size { in write()
165 self.inode.resize(self.offset)?; in write()
169 .write_at(self.offset, len, buf, &mut self.private_data)?; in write()
170 self.offset += len; in write()
198 SeekFrom::SeekSet(offset) => { in lseek()
199 pos = offset; in lseek()
201 SeekFrom::SeekCurrent(offset) => { in lseek()
202 pos = self.offset as i64 + offset; in lseek()
204 SeekFrom::SeekEnd(offset) => { in lseek()
206 pos = metadata.size + offset; in lseek()
217 self.offset = pos as usize; in lseek()
218 return Ok(self.offset); in lseek()
249 if self.offset == 0 { in readdir()
256 self.offset = 0; in readdir()
270 self.offset += 1; in readdir()
298 offset: self.offset.clone(), in try_clone()