MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / Serialize

Method Serialize

src/lib/APIEvent.cpp:90–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90std::vector<std::byte> APIEvent::Serialize() const {
91 const auto str = std::format(
92 "{:08x}!{}!{:08x}!{}!", name.size(), name, value.size(), value);
93 const auto first = reinterpret_cast<const std::byte*>(str.data());
94 return {first, first + str.size()};
95}
96
97void APIEvent::Send() const {
98 TraceLoggingThreadActivity<gTraceProvider> activity;

Callers 1

SendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected