Lines Matching defs:offset
102 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
104 if (offset < 0) {
109 std::min(byte_count, file_size_ - offset));
111 memcpy(buf, data() + offset, read_size);
115 return FdFile::Read(buf, byte_count, offset);
137 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
140 if (offset < 0) {
145 std::min(byte_count, file_size_ - offset));
147 memcpy(data() + offset, buf, write_size);
151 return FdFile::Write(buf, byte_count, offset);