class ZSTDS::Stream::Raw::Compressor

ZSTDS::Stream::Raw::Compressor class.

Constants

NativeCompressor

Current native compressor class.

Option

ZSTDS::Option module.

Public Class Methods

new(options = {}) click to toggle source

Initializes compressor. Option: :destination_buffer_length destination buffer length. Option: :pledged_size source bytesize.

Calls superclass method
# File lib/zstds/stream/raw/compressor.rb, line 24
def initialize(options = {})
  options = Option.get_compressor_options options, BUFFER_LENGTH_NAMES

  pledged_size = options[:pledged_size]
  Validation.validate_not_negative_integer pledged_size unless pledged_size.nil?

  super options
end