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

Method NewSequentialFile

src/leveldb/util/env_posix.cc:513–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 }
512
513 Status NewSequentialFile(const std::string& filename,
514 SequentialFile** result) override {
515 int fd = ::open(filename.c_str(), O_RDONLY | kOpenBaseFlags);
516 if (fd < 0) {
517 *result = nullptr;
518 return PosixError(filename, errno);
519 }
520
521 *result = new PosixSequentialFile(filename, fd);
522 return Status::OK();
523 }
524
525 Status NewRandomAccessFile(const std::string& filename,
526 RandomAccessFile** result) override {

Callers 9

NewSequentialFileFunction · 0.45
ReadFileToStringFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
RecoverLogFileMethod · 0.45
ConvertLogToTableMethod · 0.45
PrintLogContentsFunction · 0.45
TruncateFunction · 0.45
RecoverMethod · 0.45

Calls 2

PosixErrorFunction · 0.85
OKFunction · 0.85

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TruncateFunction · 0.36