xaya / libxayagame

MIT License
21 stars 19 forks source link

Implement compression functions in xayautil #91

Closed domob1812 closed 4 years ago

domob1812 commented 4 years ago

This adds a pair of functions CompressData and UncompressData to xayautils. These functions can be used to apply simple compression (raw deflate) if needed by games, while they are specifically designed to make sure the uncompress logic will be stable with respect to what data it accepts and rejects in order to maintain consensus.