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

Method skip

cpp/fory/util/stream.cc:190–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190Result<void, Error> StdInputStream::skip(uint32_t size) {
191 if (size == 0) {
192 return Result<void, Error>();
193 }
194 Error error;
195 buffer_->increase_reader_index(size, error);
196 if (FORY_PREDICT_FALSE(!error.ok())) {
197 return Unexpected(std::move(error));
198 }
199 return Result<void, Error>();
200}
201
202Result<void, Error> StdInputStream::unread(uint32_t size) {
203 if (FORY_PREDICT_FALSE(size > buffer_->reader_index_)) {

Callers 2

mainFunction · 0.45
TESTFunction · 0.45

Calls 3

UnexpectedClass · 0.85
increase_reader_indexMethod · 0.80
okMethod · 0.45

Tested by 1

TESTFunction · 0.36