« Upgrading our Java Su… | Home | MBS FileMaker Plugin,… »

LZ4 Extremely fast compression for Xojo

For next MBS Xojo Plugin, we add a LZ4 compression module called LZ4MBS. LZ4 is a lossless compression algorithm with high performance.

We have Compress and Decompress methods for handling data in string and MemoryBlocks in Xojo:

Dim m As String = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor site amat." // make sure encoding is set m = ConvertEncoding(m, encodings.UTF8) // compress Dim c As String = LZ4MBS.Compress(m) // decompress Dim d As String = LZ4MBS.Decompress(c) // set encoding after decompressing d = DefineEncoding(d, encodings.UTF8) // and check If d = m Then MsgBox "Text match" Else MsgBox "Text doesn't match" End If
You can download 19.4pr6 in the next days and try it. Please contact us if you have questions.
07 09 19 - 13:15