lib/ruby/truffle/pr-zlib/lib/pr/rbzlib.rb
# Initialize the "longest match" routines for a new zlib stream
Initialize the "longest match" routines for a new zlib stream
Initialize the " longest match " routines for a new zlib stream
def lm_init(s)
    s.window_size = (2*s.w_size)
    s.head = Array.new(s.hash_size,0)
    s.head[s.hash_size-1] = ZNIL
    s.max_lazy_match   = @@configuration_table[s.level].max_lazy
    s.good_match       = @@configuration_table[s.level].good_length
    s.nice_match       = @@configuration_table[s.level].nice_length
    s.max_chain_length = @@configuration_table[s.level].max_chain
    s.strstart = 0
    s.block_start = (0)
    s.lookahead = 0
    s.prev_length = MIN_MATCH-1
    s.match_length = MIN_MATCH-1
    s.match_available = false
    s.ins_h = 0
  end
def lm_init ( s ) s . window_size = ( 2 * s . w_size ) s . head = Array . new ( s . hash_size , 0 ) s . head [ s . hash_size - 1 ] = ZNIL s . max_lazy_match = @@configuration_table [ s . level ] . max_lazy s . good_match = @@configuration_table [ s . level ] . good_length s . nice_match = @@configuration_table [ s . level ] . nice_length s . max_chain_length = @@configuration_table [ s . level ] . max_chain s . strstart = 0 s . block_start = ( 0 ) s . lookahead = 0 s . prev_length = MIN_MATCH - 1 s . match_length = MIN_MATCH - 1 s . match_available = false s . ins_h = 0 end
Initialize the "longest match" routines for a new zlib stream
Initialize the " longest match " routines for a new zlib stream
s
<not_specific>