From 21192a63e1411134b3096da4e5f9a511f913c9b9 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 13 Jun 2023 16:46:47 -0700 Subject: Changeset: 95 Change Uid's serialization format from JSON array to just a string --- source/10-common/Uid.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/10-common/Uid.hpp') diff --git a/source/10-common/Uid.hpp b/source/10-common/Uid.hpp index 539de03..a691911 100644 --- a/source/10-common/Uid.hpp +++ b/source/10-common/Uid.hpp @@ -13,10 +13,14 @@ #define BRUSSEL_Uid_FORMAT_STR "%016" PRIx64 "-%016" PRIx64 #define BRUSSEL_Uid_FORMAT_EXPAND(uid) (uid).upper, (uid).lower +// Serialize Uid object as an array with two elements, instead of the simple string format +#define BRUSSEL_Uid_WRITE_USE_ARRAY 0 + struct Uid { uint64_t upper = 0; uint64_t lower = 0; + // Generate a random Uid static Uid Create(); bool IsNull() const; -- cgit v1.2.3-70-g09d2