* Flushes the data in the buffer to the target storage. Note that the data is not guaranteed to * be immediately written to the storage device; it is only flushed to the system buffer. */
| 57 | * be immediately written to the storage device; it is only flushed to the system buffer. |
| 58 | */ |
| 59 | void flush() override { |
| 60 | if (file) { |
| 61 | fflush(file); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | private: |
| 66 | FILE* file = nullptr; |