| 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) { |
no test coverage detected