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