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

Method readByte

c++/src/ColumnReader.cc:374–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 const char* bufferEnd_;
373
374 unsigned char readByte() {
375 if (bufferPointer_ == bufferEnd_) {
376 int length;
377 if (!inputStream_->Next(reinterpret_cast<const void**>(&bufferPointer_), &length)) {
378 throw ParseError("bad read in DoubleColumnReader::next()");
379 }
380 bufferEnd_ = bufferPointer_ + length;
381 }
382 return static_cast<unsigned char>(*(bufferPointer_++));
383 }
384
385 ValueType read() {
386 using BitType = std::conditional_t<columnKind == TypeKind::DOUBLE, int64_t, int32_t>;

Callers

nothing calls this directly

Calls 2

ParseErrorClass · 0.85
NextMethod · 0.45

Tested by

no test coverage detected