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

Method try_flush

cpp/fory/serialization/context.h:193–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 inline void try_flush() {
194 if (output_stream_ == nullptr || buffer_.writer_index() <= 4096) {
195 return;
196 }
197 output_stream_->try_flush();
198 if (FORY_PREDICT_FALSE(output_stream_->has_error())) {
199 set_error(output_stream_->error());
200 }
201 }
202
203 inline void force_flush() {
204 if (output_stream_ == nullptr) {

Callers 6

write_dataMethod · 0.45
write_data_genericMethod · 0.45
write_map_data_fastFunction · 0.45
write_map_data_slowFunction · 0.45

Calls 3

writer_indexMethod · 0.80
errorMethod · 0.65
has_errorMethod · 0.45

Tested by

no test coverage detected