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

Method skip

bolt/common/memory/ByteStream.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void ByteInputStream::skip(int32_t size) {
178 for (;;) {
179 int32_t available = current_->size - current_->position;
180 int32_t numUsed = std::min(available, size);
181 size -= numUsed;
182 current_->position += numUsed;
183 if (!size) {
184 return;
185 }
186 next();
187 }
188}
189
190size_t ByteOutputStream::size() const {
191 if (ranges_.empty()) {

Callers 1

TEST_PFunction · 0.45

Calls 1

minFunction · 0.50

Tested by

no test coverage detected