Module: Omnizip::Implementations::XZUtils::LZMA2::StringCompat

Defined in:
lib/omnizip/implementations/xz_utils/lzma2/encoder.rb

Overview

XZ Utils LZMA2 encoder implementation.

This is the original XzLZMA2Encoder moved from algorithms/lzma2/xz_lzma2_encoder.rb to the new namespace structure.

Ported from XZ Utils liblzma/lzma2_encoder.c

Compatibility helper for Ruby 3.0-3.1 where String#byteslice doesn't exist

Class Method Summary collapse

Class Method Details

.byteslice(string, start, length) ⇒ Object



39
40
41
# File 'lib/omnizip/implementations/xz_utils/lzma2/encoder.rb', line 39

def self.byteslice(string, start, length)
  string.byteslice(start, length)
end