Class: VibeZstd::CDict
- Inherits:
-
Object
- Object
- VibeZstd::CDict
- Defined in:
- lib/vibe_zstd.rb,
sig/vibe_zstd.rbs,
ext/vibe_zstd/vibe_zstd.c
Overview
Pre-digested compression dictionary
Class Method Summary collapse
-
.estimate_memory(dict_size, level) ⇒ Object
CDict.estimate_memory(dict_size, level).
Instance Method Summary collapse
-
#dict_id ⇒ Object
CDict dict_id method - returns dictionary ID.
-
#initialize ⇒ CDict
constructor
A new instance of CDict.
-
#size ⇒ Object
CDict size method - returns the size in memory.
-
#to_ddict ⇒ DDict
(also: #ddict)
Get or create a matching DDict from this CDict's dictionary data The DDict is cached so it's only created once.
Constructor Details
#initialize ⇒ CDict
Returns a new instance of CDict.
29 |
# File 'sig/vibe_zstd.rbs', line 29
def initialize: (String dict_data, ?Integer? level) -> void
|
Class Method Details
.estimate_memory(dict_size, level) ⇒ Object
CDict.estimate_memory(dict_size, level)
607 |
# File 'ext/vibe_zstd/dict.c', line 607
def self.estimate_memory: (Integer dict_size, Integer level) -> Integer
|
Instance Method Details
#dict_id ⇒ Object
CDict dict_id method - returns dictionary ID
59 |
# File 'ext/vibe_zstd/dict.c', line 59
def dict_id: () -> Integer
|
#size ⇒ Object
CDict size method - returns the size in memory
47 |
# File 'ext/vibe_zstd/dict.c', line 47
def size: () -> Integer
|