Skip to content
FutureBlitz

    Install

    Import std.compress.lz4

    Lz4

    std.compress.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)

    std/compress/lz4.fb, line 53

    • @PanicsAtCaller Public Static Method Compress(data: UInt8[], level: Int = 1): UInt8[] static method #

      The data, compressed at the level. Panics when the level isn't from 1 to 12.

    • @PanicsAtCaller Public Static Method Decompress(data: UInt8[], limit: Int = MOST_BYTES): UInt8[] Throws IOError static method #

      The bytes the data is 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 than limit bytes. Panics when the limit is negative.

    Report an issue with this page or with FutureBlitz on GitHub.