MCPcopy Create free account
hub / github.com/bytedance/bolt / readByte

Method readByte

bolt/dwio/common/compression/PagedInputStream.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56uint32_t PagedInputStream::readByte(bool failOnEof) {
57 if (UNLIKELY(inputBufferPtr_ == inputBufferPtrEnd_)) {
58 readBuffer(failOnEof);
59 if (state_ == State::END) {
60 return 0;
61 }
62 }
63 return static_cast<unsigned char>(*(inputBufferPtr_++));
64}
65
66void PagedInputStream::readHeader() {
67 uint32_t header = readByte(false);

Callers

nothing calls this directly

Calls 1

readBufferFunction · 0.85

Tested by

no test coverage detected