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

Function skip_string

cpp/fory/serialization/skip.cc:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void skip_string(ReadContext &ctx) {
154 // Read string length + encoding
155 uint64_t size_encoding = ctx.read_var_uint64(ctx.error());
156 if (FORY_PREDICT_FALSE(ctx.has_error())) {
157 return;
158 }
159 uint64_t size = size_encoding >> 2;
160
161 // skip string data
162 ctx.buffer().increase_reader_index(size, ctx.error());
163}
164
165void skip_list(ReadContext &ctx, const FieldType &field_type) {
166 // Read list length

Callers 1

skip_field_valueFunction · 0.70

Calls 5

increase_reader_indexMethod · 0.80
errorMethod · 0.65
read_var_uint64Method · 0.45
has_errorMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected