Files
stvpn/msgheader_test.cpp
T
Олег Бородин bd4df1e3da working commit
2026-04-29 18:49:19 +02:00

20 lines
383 B
C++

#include <expected>
#include <string>
#include <cstring>
#include <iostream>
#include <format>
#include <msgheader.hpp>
int main(int argc, char** argv) {
MessageHeader primary(1021);
auto rawHeader = primary.Encode();
MessageHeader second;
second.Decode(rawHeader);
std::cout << std::format("{}\n", second.PacketSize());
assert
}