summaryrefslogtreecommitdiff
path: root/include/net/packet.hpp
diff options
context:
space:
mode:
authorhovertank3d <[email protected]>2025-11-13 23:07:41 +0100
committerhovertank3d <[email protected]>2025-11-13 23:23:19 +0100
commit9e162e1a3cbf4ea75953bb1f4e2b9440c9456348 (patch)
treef97a1cce84cfbf3ae3f3fceb2211b15543a26efb /include/net/packet.hpp
parenta5b377745116de2b269cdfc5b90f08f46d0432d2 (diff)
downloadogurec-9e162e1a3cbf4ea75953bb1f4e2b9440c9456348.tar.gz
ogurec-9e162e1a3cbf4ea75953bb1f4e2b9440c9456348.zip
make clang-format happy
Diffstat (limited to 'include/net/packet.hpp')
-rw-r--r--include/net/packet.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/packet.hpp b/include/net/packet.hpp
index f2094c0..117fc15 100644
--- a/include/net/packet.hpp
+++ b/include/net/packet.hpp
@@ -62,7 +62,7 @@ std::vector<uint8_t> encode_packet(T& t)
template <compressed_packet T>
std::vector<uint8_t> encode_packet(T& t)
{
- static constexpr auto chunk_size = 1024;
+ static constexpr auto chunk_size = 1024;
std::array<uint8_t, chunk_size> buffer;
std::vector<uint8_t> payload;
@@ -82,10 +82,10 @@ std::vector<uint8_t> encode_packet(T& t)
strm.next_in = raw_payload.data();
do {
strm.avail_out = chunk_size;
- strm.next_out = reinterpret_cast<Bytef *>(buffer.data());
+ strm.next_out = reinterpret_cast<Bytef*>(buffer.data());
ret = deflate(&strm, flush);
assert(ret != Z_STREAM_ERROR);
- payload.insert(payload.end(), buffer.begin(), buffer.end()-strm.avail_out);
+ payload.insert(payload.end(), buffer.begin(), buffer.end() - strm.avail_out);
} while (strm.avail_out == 0);
assert(strm.avail_in == 0); /* all input will be used */