| 65 | }; |
| 66 | |
| 67 | IpcPacket::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 | |
| 75 | void IpcPacket::setOpenImage(string_view imagePath, string_view channelSelector, bool grabFocus) { |
| 76 | OStream payload{mPayload}; |
nothing calls this directly
no outgoing calls
no test coverage detected