MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ReadAll

Method ReadAll

external/sentencepiece/src/filesystem.cc:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 bool ReadAll(std::string *line) {
56 if (is_ == &std::cin) {
57 LOG(ERROR) << "ReadAll is not supported for stdin.";
58 return false;
59 }
60 line->assign(std::istreambuf_iterator<char>(*is_),
61 std::istreambuf_iterator<char>());
62 return true;
63 }
64
65 private:
66 util::Status status_;

Callers 2

LoadModelProtoFunction · 0.80

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected