Class: Omnizip::Algorithms::Zstandard::MatchFinder::SeqStore

Inherits:
Object
  • Object
show all
Defined in:
lib/omnizip/algorithms/zstandard/match_finder.rb

Overview

Literal buffer + raw sequences produced by the match finder.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rep_offsets = [1, 4, 8]) ⇒ SeqStore

Returns a new instance of SeqStore.



58
59
60
61
62
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 58

def initialize(rep_offsets = [1, 4, 8])
  @literals = String.new(encoding: Encoding::BINARY)
  @sequences = []
  @rep_offsets = rep_offsets
end

Instance Attribute Details

#literalsString

Returns all literal bytes.

Returns:

  • (String)

    all literal bytes



50
51
52
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 50

def literals
  @literals
end

#rep_offsetsArray<Integer>

Returns finder-side repeat offsets.

Returns:

  • (Array<Integer>)

    finder-side repeat offsets



56
57
58
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 56

def rep_offsets
  @rep_offsets
end

#sequencesArray<RawSequence>

Returns:



53
54
55
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 53

def sequences
  @sequences
end