CBOR: Adjust for DECTRIS stream2 compatibility:

* date/time tag
* initial tag self-described CBOR
* series ID
* fixes to typed array header in case of compression
This commit is contained in:
2023-04-19 11:09:58 +02:00
parent d2df1b3ce3
commit 25359f0d60
11 changed files with 1401 additions and 45 deletions

View File

@@ -72,7 +72,6 @@ size_t JFJochBitShuffleCompressor::Compress(char *dest, const char *source, size
if (tmp_space.size() < DefaultBlockSize * elem_size)
tmp_space.resize(DefaultBlockSize * elem_size);
size_t num_full_blocks = nelements / DefaultBlockSize;
size_t reminder_size = nelements - num_full_blocks * DefaultBlockSize;
size_t compressed_size = 12;