This commit is contained in:
Jerry (Xinyu Hou) 2015-11-30 12:22:44 -08:00 committed by Xinyu Hou
parent 6d0f820db5
commit 221a9a71c4
1 changed files with 7 additions and 0 deletions

View File

@ -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;