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

Method flush_stream

cpp/fory/util/stream.cc:335–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335Result<void, Error> StdOutputStream::flush_stream() {
336 if (stream_ == nullptr) {
337 return Unexpected(Error::io_error("output stream is null"));
338 }
339 stream_->flush();
340 if (!(*stream_)) {
341 return Unexpected(Error::io_error("failed to flush output stream"));
342 }
343 return Result<void, Error>();
344}
345
346} // namespace fory

Callers

nothing calls this directly

Calls 2

UnexpectedClass · 0.85
flushMethod · 0.45

Tested by

no test coverage detected