[idd] transport: stream writes to WC mappings

This commit is contained in:
Geoffrey McRae
2026-08-17 03:00:54 +10:00
parent 4f695b93d6
commit 4e15f3b68b
2 changed files with 15 additions and 3 deletions

View File

@@ -27,6 +27,7 @@
#include "CDebug.h"
#include "Seq.h"
#include "WCCopy.h"
#include "WCWrite.h"
#include "transport/lgmp/CLGMPHost.h"
#include <limits>
@@ -1745,8 +1746,10 @@ ClipboardChannelResult CLGMPClipboardTransport::SendData(
memcpy(buffer.data, &message, sizeof(message));
if (message.length)
memcpy(static_cast<uint8_t *>(buffer.data) + sizeof(message), data,
WCWrite::Copy(static_cast<uint8_t *>(buffer.data) + sizeof(message), data,
message.length);
// Stream commit drains WC writes before publishing the producer cursor.
status = lgmpHostStreamWriteCommit(
m_hostToClientStream, &buffer, bytes);
if (status == LGMP_OK)