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

Method map

cpp/fory/meta/field_info.h:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 constexpr FieldNodeSpec map() const {
157 auto copy = *this;
158 copy.size_ = 1;
159 copy.kind_[0] = FieldNodeKind::Map;
160 copy.child0_[0] = -1;
161 copy.child1_[0] = -1;
162 copy.encoding_[0] = Encoding::Default;
163 return copy;
164 }
165
166 constexpr FieldNodeSpec map(FieldNodeSpec key, FieldNodeSpec value) const {
167 return map().key(key).value(value);

Callers

nothing calls this directly

Calls 3

mapFunction · 0.70
valueMethod · 0.65
keyMethod · 0.45

Tested by

no test coverage detected