From 4c0bb5f93a34ffc9cc4157836f312177b0929b69 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 18 Aug 2025 19:49:39 +0200 Subject: [PATCH] LZ4 -> ZLIB (#452) --- bitchat/Utils/CompressionUtil.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitchat/Utils/CompressionUtil.swift b/bitchat/Utils/CompressionUtil.swift index 4fabf38a..f9b1491b 100644 --- a/bitchat/Utils/CompressionUtil.swift +++ b/bitchat/Utils/CompressionUtil.swift @@ -27,7 +27,7 @@ struct CompressionUtil { return compression_encode_buffer( destinationBuffer, data.count, sourcePtr, data.count, - nil, COMPRESSION_LZ4 + nil, COMPRESSION_ZLIB ) } @@ -46,7 +46,7 @@ struct CompressionUtil { return compression_decode_buffer( destinationBuffer, originalSize, sourcePtr, compressedData.count, - nil, COMPRESSION_LZ4 + nil, COMPRESSION_ZLIB ) } @@ -72,4 +72,4 @@ struct CompressionUtil { let uniqueByteRatio = Double(byteFrequency.count) / Double(min(data.count, 256)) return uniqueByteRatio < 0.9 // Compress if less than 90% unique bytes } -} \ No newline at end of file +}