From f35d83ae48dd96033af2d76308cfc1c1d6a676f4 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 11 Sep 2014 18:41:58 +0200 Subject: [PATCH] We have an extra field in compressed messages --- protocol/PROTOCOL.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocol/PROTOCOL.md b/protocol/PROTOCOL.md index 839072844..72a581b60 100644 --- a/protocol/PROTOCOL.md +++ b/protocol/PROTOCOL.md @@ -99,7 +99,10 @@ The Compression bit "C" indicates the compression used for the message. For C=1: * The Length field contains the length, in bytes, of the - compressed message data. + compressed message data plus a four byte uncompressed length field. + + * The compressed message data is preceeded by a 32 bit field denoting + the length of the uncompressed message. * The message data is compressed using the LZ4 format and algorithm described in https://code.google.com/p/lz4/.