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

Function skip_struct_data

cpp/fory/serialization/skip.cc:72–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void skip_struct_data(ReadContext &ctx, const TypeInfo &type_info) {
73 if (!type_info.type_meta) {
74 ctx.set_error(Error::type_error("TypeMeta not found for struct skip"));
75 return;
76 }
77 if (ctx.check_struct_version()) {
78 (void)ctx.read_int32(ctx.error());
79 if (FORY_PREDICT_FALSE(ctx.has_error())) {
80 return;
81 }
82 }
83 const auto &field_infos = type_info.type_meta->get_field_infos();
84 for (const auto &fi : field_infos) {
85 skip_field_value(ctx, fi.field_type, fi.field_type.ref_mode);
86 if (FORY_PREDICT_FALSE(ctx.has_error())) {
87 return;
88 }
89 }
90}
91
92void skip_ext_data(ReadContext &ctx, const TypeInfo &type_info) {
93 if (!type_info.harness.valid() || !type_info.harness.read_data_fn) {

Callers 1

skip_data_with_type_infoFunction · 0.85

Calls 7

get_field_infosMethod · 0.80
skip_field_valueFunction · 0.70
errorMethod · 0.65
set_errorMethod · 0.45
check_struct_versionMethod · 0.45
read_int32Method · 0.45
has_errorMethod · 0.45

Tested by

no test coverage detected