MCPcopy Create free account
hub / github.com/apache/fory / underflow

Method underflow

cpp/fory/util/buffer_test.cc:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 int_type underflow() override {
53 if (pos_ >= data_.size()) {
54 return traits_type::eof();
55 }
56 current_ = static_cast<char>(data_[pos_]);
57 setg(&current_, &current_, &current_ + 1);
58 return traits_type::to_int_type(current_);
59 }
60
61private:
62 std::vector<uint8_t> data_;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected