[feat] add acknowledged remote clipboard read and write

This commit is contained in:
dijunkun
2026-11-06 20:20:25 +08:00
parent 0eab020c38
commit 0aed57ed4d
13 changed files with 217 additions and 5 deletions
@@ -23,6 +23,7 @@ inline constexpr size_t kHeaderBytes = 16;
inline constexpr size_t kChunkBytes = 16 * 1024;
inline constexpr uint32_t kText = 1, kApplied = 2, kRejected = 3;
inline constexpr uint32_t kHello = 4, kReady = 5;
inline constexpr uint32_t kRead = 6, kEmpty = 7, kClear = 8;
inline uint32_t Read32(const char* data) {
const auto* p = reinterpret_cast<const unsigned char*>(data);