MCPcopy Create free account
hub / github.com/baidu/tera / SetSequentialFileReadCallback

Method SetSequentialFileReadCallback

src/leveldb/util/env_mock.cc:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57static bool (*SequentialFileRead)(int32_t i, char* scratch, size_t* mock_size);
58static int32_t iSequentialFileRead;
59void MockEnv::SetSequentialFileReadCallback(bool (*p)(int32_t i, char* scratch,
60 size_t* mock_size)) {
61 SequentialFileRead = p;
62}
63
64class MockSequentialFile : public SequentialFile {
65 private:

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64