MCPcopy Create free account
hub / github.com/celtera/libremidi / hex_dump

Function hex_dump

tests/unit/conversion.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static std::string hex_dump(const std::span<const uint8_t>& data)
23{
24 std::stringstream ss;
25 ss << std::hex << std::setfill('0');
26 for (auto b : data)
27 {
28 ss << std::setw(2) << static_cast<int>(b) << " ";
29 }
30 return ss.str();
31}
32
33TEST_CASE("Roundtrip MIDI 1 -> MIDI 2 -> MIDI 1", "[midi_roundtrip]")
34{

Callers 1

conversion.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected