From 7f138c4cfc6d6d6fc3e9b29f5cbb750d2462ca96 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 16 Sep 2021 15:41:11 +0200 Subject: Improved package serialization to allow round tripping --- zenhttp/httpshared.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'zenhttp/httpshared.h') diff --git a/zenhttp/httpshared.h b/zenhttp/httpshared.h index 06fdb104f..06dc4a872 100644 --- a/zenhttp/httpshared.h +++ b/zenhttp/httpshared.h @@ -28,8 +28,14 @@ static constinit uint32_t kCbPkgMagic = 0xaa77aacc; struct CbAttachmentEntry { uint64_t AttachmentSize; - uint32_t Reserved1; + uint32_t Flags; IoHash AttachmentHash; + + enum + { + kIsCompressed = (1u << 0), // Is marshaled using compressed buffer storage format + kIsObject = (1u << 1), // Is compact binary object + }; }; static_assert(sizeof(CbAttachmentEntry) == 32); -- cgit v1.2.3 From c3a7f98683d8c017f6a0dc3e884f2397670563e6 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 16 Sep 2021 15:46:43 +0200 Subject: clang-format fixes --- zenhttp/httpshared.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zenhttp/httpshared.h') diff --git a/zenhttp/httpshared.h b/zenhttp/httpshared.h index 06dc4a872..92c1ef9c6 100644 --- a/zenhttp/httpshared.h +++ b/zenhttp/httpshared.h @@ -33,8 +33,8 @@ struct CbAttachmentEntry enum { - kIsCompressed = (1u << 0), // Is marshaled using compressed buffer storage format - kIsObject = (1u << 1), // Is compact binary object + kIsCompressed = (1u << 0), // Is marshaled using compressed buffer storage format + kIsObject = (1u << 1), // Is compact binary object }; }; -- cgit v1.2.3