sort chunks

This commit is contained in:
bronku 2025-11-13 19:35:12 +01:00
parent 746fc01323
commit eddfd42284
6 changed files with 75 additions and 14 deletions

View file

@ -1,3 +1,4 @@
// #todo maybe overload << operators insted of write()
#pragma once
#include "record.hpp"
#include <ostream>
@ -17,7 +18,7 @@ private:
bool flush_buffer()
{
for (size_t i = 0; i < current_index; ++i) {
if (!(output_stream << write_buffer[i])) {
if (!(output_stream << write_buffer[i] << " ")) {
return false;
}
}