MCPcopy Create free account
hub / github.com/baidu/braft / ReadFileAdaptor

Method ReadFileAdaptor

test/test_snapshot.cpp:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30class ReadFileAdaptor : public braft::BufferedSequentialReadFileAdaptor {
31public:
32 ReadFileAdaptor(braft::FileAdaptor* file)
33 : _file(file), _offset(0)
34 {}
35 ~ReadFileAdaptor() {
36 if (_file) {
37 _file->close();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected