Skip to content
FutureBlitz

    Install

    Import std.compress.lz4

    Lz4Compressor

    std.compress.lz4

    class

    Public Class Lz4Compressor Implements Coder

    Lz4's bytes made in turn: Add gives what compressing the bytes it takes has made so far, and Finish what's left, which ends a frame, and starts again.

    std/compress/lz4.fb, line 83

    • @PanicsAtCaller Public New(level: Int = 1) constructor #

      A new Lz4Compressor at the level. Panics when it isn't from 1 to 12.

    • Public Method Add(data: UInt8[]): UInt8[] method #

      Compresses data, and gives the Lz4 bytes it has made so far, which can be none, as it holds some back to compress with what comes next.

    • Public Method Finish(): UInt8[] method #

      The rest of the bytes, which end the frame, and starts again, for another.

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