class Zstd::Dict
- Zstd::Dict
- Reference
- Object
Defined in:
zstd/dict.crConstructors
-
.new(buf : Bytes, level : Int32 = LEVEL_DEFAULT)
Create a digested dictionary, ready to start compression or decompression operation without startup delay.
Instance Method Summary
-
#cdict : Compress::Dict
The compression dictionary.
-
#ddict : Decompress::Dict
The decompression dictionary.
- #dict_id
-
#memsize
Sum of @buf.bytesize, compression and decompression dictionary sizes reported by Zstandard.
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 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.