MCPcopy Create free account
hub / github.com/Tom94/tev / IpcPacket

Method IpcPacket

src/Ipc.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65};
66
67IpcPacket::IpcPacket(const char* data, size_t length) {
68 if (length <= 0) {
69 throw runtime_error{"Cannot construct an IPC packet from no data."};
70 }
71
72 mPayload.assign(data, data + length);
73}
74
75void IpcPacket::setOpenImage(string_view imagePath, string_view channelSelector, bool grabFocus) {
76 OStream payload{mPayload};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected