Import std.compress.lz4
Lz4
struct
Public Struct Lz4
LZ4's frames, which compress fast and decompress faster.
Examples
Local data = "fast, fast, fast, fast, fast".Repeated(100).Bytes
Local packed = Lz4.Compress(data)
Expect(packed.Count < data.Count)
Local unpacked = Try Lz4.Decompress(packed)
Expect(unpacked == data)-
@PanicsAtCaller Public Static Method Compress(data: UInt8[], level: Int = 1): UInt8[]static method #The
data, compressed at thelevel. Panics when thelevelisn't from 1 to 12. -
@PanicsAtCaller Public Static Method Decompress(data: UInt8[], limit: Int = MOST_BYTES): UInt8[] Throws IOErrorstatic method #The bytes the
datais compressed from, each frame's after the last's, or an IOError when it isn't Lz4's, ends early, or would come to more thanlimitbytes. Panics when thelimitis negative.
Report an issue with this page or with FutureBlitz on GitHub.