MCPcopy Create free account
hub / github.com/ElementsProject/elements / Read

Method Read

src/leveldb/util/env_windows.cc:236–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

WindowsErrorFunction · 0.85
OKFunction · 0.85
SliceClass · 0.70

Tested by

no test coverage detected