mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[docs] Minor fixes to LZ4 documentation
This commit is contained in:
@@ -11,8 +11,8 @@ extension LZ4: CompressionAlgorithm {
|
||||
/**
|
||||
Compresses `data` using LZ4 algortihm with default format and algorithm options.
|
||||
|
||||
The default options include: independent blocks, do not save checksums for compressed blocks, save checksum for the
|
||||
uncompressed data, do not save the size of the uncompressed data, use 4 MB block size, no dictionary.
|
||||
The default options include: independent blocks, do not save checksums for compressed blocks, save the checksum of
|
||||
the uncompressed data, do not save the size of the uncompressed data, use 4 MB block size, no dictionary.
|
||||
*/
|
||||
public static func compress(data: Data) -> Data {
|
||||
return LZ4.compress(data: data, independentBlocks: true, blockChecksums: false, contentChecksum: true,
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
import Foundation
|
||||
import BitByteData
|
||||
|
||||
/// Provides functions for compression and decompression for LZ4 algorithm.
|
||||
public enum LZ4: DecompressionAlgorithm {
|
||||
|
||||
// Notes about implementation and performance.
|
||||
|
||||
Reference in New Issue
Block a user