This header-only library is a proof-of-concept implementation in src/mzd.hpp. It requires that you also link the zstd library with your binary, as outlined in the example ./CMakeLists.txt. All of the array compression methods in this library enforce storing data at-rest in little endian layout.
mzd::compress_bufferandmzd::decompress_bufferis a thin wrapper aroundzstd's direct buffer compression codec.mzd::byteshuffle_compress_bufferandmzd::byteshuffle_decompress_bufferperform better on sorted data.mzd::dict_compress_bufferandmzd::dict_decompress_bufferare intended for arrays with repeated values (e.g. ion mobility, m/z profiles with ion mobility, charge state) and is an extension of the previous codec.
Some of the code for handling endianness and testing was adapted from ProteoWizard during its integration there.