| 201 | } |
| 202 | |
| 203 | inline void force_flush() { |
| 204 | if (output_stream_ == nullptr) { |
| 205 | return; |
| 206 | } |
| 207 | output_stream_->force_flush(); |
| 208 | if (FORY_PREDICT_FALSE(output_stream_->has_error())) { |
| 209 | set_error(output_stream_->error()); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | /// write uint8_t value to buffer. |
| 214 | FORY_ALWAYS_INLINE void write_uint8(uint8_t value) { |