Import std.compress.deflate
Deflate
struct
Public Struct Deflate
Deflate's raw bytes, which zip entries and PNG's data are in.
Examples
Local data = "hello, hello, hello, hello".Repeated(100).Bytes
Local packed = Deflate.Compress(data)
Expect(packed.Count < data.Count)
Local unpacked = Try Deflate.Decompress(packed)
Expect(unpacked == data)std/compress/deflate.fb, line 64
-
@PanicsAtCaller Public Static Method Compress(data: UInt8[], level: Int = 6): UInt8[]static method #The
data, compressed at thelevel. Panics when thelevelisn't from 0 to 9. -
@PanicsAtCaller Public Static Method Decompress(data: UInt8[], limit: Int = MOST_BYTES): UInt8[] Throws IOErrorstatic method #The bytes the
datais compressed from, or an IOError when it isn't Deflate's, ends early, or would come to more thanlimitbytes. Panics when thelimitis negative.
Report an issue with this page or with FutureBlitz on GitHub.