From 221a9a71c42d4a506708c3ce3303abfeb6d30bea Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Mon, 30 Nov 2015 12:22:44 -0800 Subject: [PATCH] Add comment #4827 --- src/lib/synergy/IClipboard.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/synergy/IClipboard.cpp b/src/lib/synergy/IClipboard.cpp index 4af3802f..bd6602c1 100644 --- a/src/lib/synergy/IClipboard.cpp +++ b/src/lib/synergy/IClipboard.cpp @@ -66,6 +66,13 @@ IClipboard::unmarshall(IClipboard* clipboard, const String& data, Time time) String IClipboard::marshall(const IClipboard* clipboard) { + // return data format: + // 4 bytes => number of formats included + // 4 bytes => format enum + // 4 bytes => clipboard data size n + // n bytes => clipboard data + // back to the second 4 bytes if there is another format + assert(clipboard != NULL); String data;