MCPcopy Create free account
hub / github.com/apache/fory / ~OutputStream

Method ~OutputStream

cpp/fory/util/stream.cc:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42OutputStream::~OutputStream() {
43 if (active_buffer_ != nullptr && active_buffer_ != buffer_.get()) {
44 active_buffer_->clear_output_stream();
45 }
46 if (buffer_ != nullptr) {
47 buffer_->clear_output_stream();
48 }
49 active_buffer_ = nullptr;
50}
51
52void OutputStream::reset() {
53 flushed_bytes_ = 0;

Callers

nothing calls this directly

Calls 2

clear_output_streamMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected