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

Method remainingSize

bolt/common/memory/ByteStream.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76size_t ByteInputStream::remainingSize() const {
77 if (ranges_.empty()) {
78 return 0;
79 }
80 const auto* lastRange = &ranges_[ranges_.size() - 1];
81 auto cur = current_;
82 size_t total = cur->size - cur->position;
83 while (++cur <= lastRange) {
84 total += cur->size;
85 }
86 return total;
87}
88
89std::streampos ByteInputStream::tellp() const {
90 if (ranges_.empty()) {

Callers 3

computeChecksumFunction · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected