Files
stvpn/works/rpcvar/msgheader_test.cpp
T
Олег Бородин eda9b8986b working commit
2026-05-05 11:37:10 +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
}