Class: Omnizip::Algorithms::Zstandard::MatchFinder::SeqStore
- Inherits:
-
Object
- Object
- Omnizip::Algorithms::Zstandard::MatchFinder::SeqStore
- Defined in:
- lib/omnizip/algorithms/zstandard/match_finder.rb
Overview
Literal buffer + raw sequences produced by the match finder.
Instance Attribute Summary collapse
-
#literals ⇒ String
All literal bytes.
-
#rep_offsets ⇒ Array<Integer>
Finder-side repeat offsets.
- #sequences ⇒ Array<RawSequence>
Instance Method Summary collapse
-
#initialize(rep_offsets = [1, 4, 8]) ⇒ SeqStore
constructor
A new instance of SeqStore.
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
#literals ⇒ String
Returns all literal bytes.
50 51 52 |
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 50 def literals @literals end |
#rep_offsets ⇒ Array<Integer>
Returns finder-side repeat offsets.
56 57 58 |
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 56 def rep_offsets @rep_offsets end |
#sequences ⇒ Array<RawSequence>
53 54 55 |
# File 'lib/omnizip/algorithms/zstandard/match_finder.rb', line 53 def sequences @sequences end |