refactor: improve and make more efficient some Message API (#432)

This commit is contained in:
Stanislav Angelovič
2024-04-24 20:20:29 +02:00
parent ef552ec089
commit 310161207a
9 changed files with 58 additions and 67 deletions
+2 -4
View File
@@ -55,12 +55,10 @@ void Variant::deserializeFrom(Message& msg)
msg_.seal();
}
std::string Variant::peekValueType() const
const char* Variant::peekValueType() const
{
msg_.rewind(false);
std::string type;
std::string contents;
msg_.peekType(type, contents);
auto [type, contents] = msg_.peekType();
return contents;
}