Module: Lz4rip

Defined in:
lib/lz4rip.rb,
lib/lz4rip/version.rb,
lib/lz4rip/dictionary.rb,
lib/lz4rip/block_codec.rb,
lib/lz4rip/frame_codec.rb,
lib/lz4rip/dict_trainer.rb

Overview

Ractor-safe LZ4 compression for Ruby.

Defined Under Namespace

Classes: BlockCodec, DictTrainer, Dictionary, FrameCodec

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.block_stream_sizeInteger

Return the native block compressor heap size.

Returns:

  • (Integer)


24
25
# File 'lib/lz4rip.rb', line 24

module Lz4rip
end

.compress_bound(size) ⇒ Integer

Return the maximum compressed output size for input bytes.

Parameters:

  • size (Integer)

    input size in bytes

Returns:

  • (Integer)


24
25
# File 'lib/lz4rip.rb', line 24

module Lz4rip
end