working commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
#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
|
||||
}
|
||||
Reference in New Issue
Block a user