class

Zstd::Dict

Inherits Reference / Object

Constructors

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.

Source

Instance methods

cdict

The compression dictionary.

Source
ddict

The decompression dictionary.

Source
dict_id
Source
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.

Source