class Zstd::Dict

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(buf : Bytes, level : Int32 = LEVEL_DEFAULT) #

Create a digested dictionary, ready to start compression or decompression operation without startup delay.

May be shared between multiple Context's.

buf is copied and may be reused or modified.


Instance Method Detail

def cdict #

The compression dictionary.


def ddict #

The decompression dictionary.


def dict_id #

def memsize #

Sum of @buf.bytesize, compression and decompression dictionary sizes reported by Zstandard.

Doesn't include crystal object overhead which is probably less than 52 bytes.