Module: ZSTDS::String
- Defined in:
- lib/zstds/string.rb
Constant Summary collapse
- BUFFER_LENGTH_NAMES =
%i[destination_buffer_length].freeze
Class Method Summary collapse
Class Method Details
.compress(source, options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/zstds/string.rb', line 13 def self.compress(source, = {}) Validation.validate_string source = Option. , BUFFER_LENGTH_NAMES [:pledged_size] = source.bytesize ZSTDS._native_compress_string source, end |
.decompress(source, options = {}) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/zstds/string.rb', line 23 def self.decompress(source, = {}) Validation.validate_string source = Option. , BUFFER_LENGTH_NAMES ZSTDS._native_decompress_string source, end |