MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetFileIterator

Function GetFileIterator

src/leveldb/db/version_set.cc:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211};
212
213static Iterator* GetFileIterator(void* arg,
214 const ReadOptions& options,
215 const Slice& file_value) {
216 TableCache* cache = reinterpret_cast<TableCache*>(arg);
217 if (file_value.size() != 16) {
218 return NewErrorIterator(
219 Status::Corruption("FileReader invoked with unexpected value"));
220 } else {
221 return cache->NewIterator(options,
222 DecodeFixed64(file_value.data()),
223 DecodeFixed64(file_value.data() + 8));
224 }
225}
226
227Iterator* Version::NewConcatenatingIterator(const ReadOptions& options,
228 int level) const {

Callers

nothing calls this directly

Calls 5

NewErrorIteratorFunction · 0.85
DecodeFixed64Function · 0.85
sizeMethod · 0.45
NewIteratorMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected