... add reserved elements conception

This commit is contained in:
2024-06-05 12:45:17 +03:00
parent cf543feeb5
commit efa48ee132
2 changed files with 103 additions and 86 deletions

View File

@@ -36,9 +36,11 @@ TEST_CASE("[ADC NET MESSAGE]")
}
auto t2 = msg.bytesView();
std::cout << "BYTES VIEW: ";
for (auto& el : t2) {
std::cout << "BYTES VIEW: [" << el << "]\n";
std::cout << "[" << el << "]";
}
std::cout << "\n";
std::cout << "\n\n---------\n\n";
@@ -47,7 +49,7 @@ TEST_CASE("[ADC NET MESSAGE]")
msg.setTokens("FILTER", "A1", "B3");
std::cout << "BYTES: " << msg.bytes() << "\n";
std::cout << "TOK BYTES: " << msg.tokensBytes(1, 1) << "\n";
std::cout << "TOK BYTES: [" << msg.tokensBytes(1, 1) << "]\n";
std::cout << "\n\n---------\n\n";
@@ -59,9 +61,11 @@ TEST_CASE("[ADC NET MESSAGE]")
tmsg.setFromBytes(bb.begin(), bb.end());
auto t1 = tmsg.bytesView();
std::cout << "TOKENS VIEW: ";
for (auto& el : t1) {
std::cout << "TOKEN VIEW: [" << el << "]\n";
std::cout << "[" << el << "]";
}
std::cout << "\n";
}
/*