Skip to content
FutureBlitz

    Install

    Import std.compress.zstd

    ZstdCompressor

    std.compress.zstd

    class

    Public Class ZstdCompressor Implements Coder

    Zstd'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/zstd.fb, line 83

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

      A new ZstdCompressor at the level. Panics when it isn't from 1 to 22.

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

      Compresses data, and gives the Zstd 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.