MCPcopy Create free account
hub / github.com/apache/orc / nextLine

Method nextLine

tools/test/gzip.cc:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 bool GzipTextReader::nextLine(std::string& line) {
91 bool result = false;
92 line.clear();
93 while (true) {
94 if (outPtr_ == outEnd_) {
95 if (!nextBuffer()) {
96 return result;
97 }
98 }
99 unsigned char ch = *(outPtr_++);
100 if (ch == '\n') {
101 return true;
102 }
103 line += static_cast<char>(ch);
104 }
105 }
106
107 GzipTextReader::~GzipTextReader() {
108 inflateEnd(&stream_);

Callers 1

TEST_PFunction · 0.80

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected