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

Function write_not_null_ref_flag

cpp/fory/serialization/serializer.h:112–117  ·  view source on GitHub ↗

write ref flag for NullOnly mode (not null case). Fast path: primitives, strings, time types use this.

Source from the content-addressed store, hash-verified

110/// write ref flag for NullOnly mode (not null case).
111/// Fast path: primitives, strings, time types use this.
112FORY_ALWAYS_INLINE void write_not_null_ref_flag(WriteContext &ctx,
113 RefMode ref_mode) {
114 if (ref_mode != RefMode::None) {
115 ctx.write_int8(NOT_NULL_VALUE_FLAG);
116 }
117}
118
119/// Read ref flag for NullOnly mode.
120/// Returns true if value present, false if null or error.

Callers 15

writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85
writeMethod · 0.85

Calls 1

write_int8Method · 0.45

Tested by 1

writeMethod · 0.68