Lines Matching refs:offset
138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read()
142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read()
163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument
165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write()
167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write()
181 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { in ReadIgnoreOffset() argument
182 DCHECK_EQ(offset, 0); in ReadIgnoreOffset()
187 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { in ReadFullyGeneric() argument
190 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); in ReadFullyGeneric()
198 offset += static_cast<size_t>(bytes_read); // Move the offset forward. in ReadFullyGeneric()
207 bool FdFile::PreadFully(void* buffer, size_t byte_count, size_t offset) { in PreadFully() argument
208 return ReadFullyGeneric<pread>(fd_, buffer, byte_count, offset); in PreadFully()