Below is Description of groupId:
The groupId with which this information is associated.
This is typically represented as a series of 2-byte unsigned integers
(i.e. two-byte unsigned integers written directly next to each other in
the buffer). The example provided in the RANGE / EXAMPLE
column of this table shows such a series, with inserted dots to help
indicate two-byte value. When encoded into a buffer, do not include
dots.
What is the proper way to copy/convert groupId into std::string so that groupId be stored and logged with human readable format?
I have tried the following:
const std::string groupId{msg->refreshMsg.groupId.data, msg->refreshMsg.groupId.length};
const std::string_view groupId{msg->refreshMsg.groupId.data, msg->refreshMsg.groupId.length};