| 233 | } |
| 234 | |
| 235 | Status Read(uint64_t offset, size_t n, Slice* result, |
| 236 | char* scratch) const override { |
| 237 | if (offset + n > length_) { |
| 238 | *result = Slice(); |
| 239 | return PosixError(filename_, EINVAL); |
| 240 | } |
| 241 | |
| 242 | *result = Slice(mmap_base_ + offset, n); |
| 243 | return Status::OK(); |
| 244 | } |
| 245 | |
| 246 | virtual std::string GetName() const override { return filename_; } |
| 247 |
nothing calls this directly
no test coverage detected