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

Method clear_output_stream

cpp/fory/util/buffer.h:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 FORY_ALWAYS_INLINE void clear_output_stream() {
133 if (output_stream_ == nullptr) {
134 return;
135 }
136 output_stream_->unbind_buffer(this);
137 output_stream_ = nullptr;
138 }
139
140 // Best-effort stream buffer compaction entry point.
141 // Stage 1 guard: avoid calling into stream shrinking for very small progress.

Callers 4

serializeMethod · 0.80
resetMethod · 0.80
~OutputStreamMethod · 0.80

Calls 1

unbind_bufferMethod · 0.80

Tested by

no test coverage detected