MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / msgpack_buffer

Function msgpack_buffer

test/msgpack.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template <class T>
55static std::vector<char> msgpack_buffer(const T& src)
56{
57 std::stringstream buffer;
58 write_msgpack(buffer, src);
59 buffer.seekg(0);
60 std::string str = buffer.str();
61 return std::vector<char>(str.data(), str.data() + str.size()); // NOLINT
62}
63
64TEST_CASE(test_msgpack_empty_value)
65{

Callers 1

TEST_CASEFunction · 0.85

Calls 4

write_msgpackFunction · 0.85
strMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected