Skip to content

Commit

Permalink
Update segment.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallardo994 committed Mar 16, 2024
1 parent 5fe7fb7 commit 6bffb34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imkcpp/include/segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ namespace imkcpp {
u32 xmit = 0;
};

// TODO: Should be used via serializer functions.
/// SegmentData is used to store the payload of the segment.
struct SegmentData final {
std::vector<std::byte> data{};
Expand Down Expand Up @@ -130,6 +131,7 @@ namespace imkcpp {
}
};

// TODO: Should be used via serializer functions.
struct Segment final {
static_assert(serializer::fixed_size<SegmentHeader>() == 24, "Segment header is 24 bytes by default. Changes this assert if you know what you're doing.");

Expand Down

0 comments on commit 6bffb34

Please sign in to comment.