MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / readFromFile

Method readFromFile

test/transaction/wal_test.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96protected:
97 void readFromFile(FileInfo& fileInfo, void* buffer, uint64_t numBytes,
98 uint64_t position) const override {
99 std::unique_lock lck{mtx};
100 const auto& file = files.at(fileInfo.path);
101 memcpy(buffer, file.data() + position, numBytes);
102 }
103
104 int64_t readFile(FileInfo& /*fileInfo*/, void* /*buf*/, size_t /*numBytes*/) const override {
105 UNREACHABLE_CODE;

Callers 1

processRunCommandsFunction · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected