Module: Heatshrink
- Defined in:
- lib/heatshrink.rb,
ext/heatshrink/heatshrink_ruby.c
Defined Under Namespace
Modules: Internal
Constant Summary collapse
- DEF_WINDOW_SZ2 =
11
- DEF_LOOKAHEAD_SZ2 =
4
Class Method Summary collapse
- .compress(data, window_sz2 = DEF_WINDOW_SZ2, lookahead_sz2 = DEF_LOOKAHEAD_SZ2) ⇒ Object
- .uncompress(data, window_sz2 = DEF_WINDOW_SZ2, lookahead_sz2 = DEF_LOOKAHEAD_SZ2) ⇒ Object
Class Method Details
.compress(data, window_sz2 = DEF_WINDOW_SZ2, lookahead_sz2 = DEF_LOOKAHEAD_SZ2) ⇒ Object
7 8 9 |
# File 'lib/heatshrink.rb', line 7 def self.compress data, window_sz2=DEF_WINDOW_SZ2, lookahead_sz2=DEF_LOOKAHEAD_SZ2 Internal.compress data, window_sz2, lookahead_sz2 end |
.uncompress(data, window_sz2 = DEF_WINDOW_SZ2, lookahead_sz2 = DEF_LOOKAHEAD_SZ2) ⇒ Object
11 12 13 |
# File 'lib/heatshrink.rb', line 11 def self.uncompress data, window_sz2=DEF_WINDOW_SZ2, lookahead_sz2=DEF_LOOKAHEAD_SZ2 Internal.uncompress data, window_sz2, lookahead_sz2 end |