lib/gziprb/deflate/inflate.rb
def inflate_block(compression_method_bits, lz77, input_buffer, yield_byte)
        case compression_method_bits
        when RESERVED
          raise 'Should not encounter RESERVED block!'
        when NO_COMPRESSION
          inflate_stored_block(lz77, input_buffer, yield_byte)
        when FIXED_HUFFMAN_COMPRESSION
          inflate_fixed_huffman_block(lz77, input_buffer, yield_byte)
        when DYNAMIC_HUFFMAN_COMPRESSION
          inflate_dynamic_huffman_block(lz77, input_buffer, yield_byte)
        end
      end
# Dispatch to the correct inflation method, depending on the compression method bits.
Dispatch to the correct inflation method, depending on the compression method bits.
Dispatch to the correct inflation method depending on the compression method bits .
def inflate_block(compression_method_bits, lz77, input_buffer, yield_byte)
        case compression_method_bits
        when RESERVED
          raise 'Should not encounter RESERVED block!'
        when NO_COMPRESSION
          inflate_stored_block(lz77, input_buffer, yield_byte)
        when FIXED_HUFFMAN_COMPRESSION
          inflate_fixed_huffman_block(lz77, input_buffer, yield_byte)
        when DYNAMIC_HUFFMAN_COMPRESSION
          inflate_dynamic_huffman_block(lz77, input_buffer, yield_byte)
        end
      end
def inflate_block ( compression_method_bits , lz77 , input_buffer , yield_byte ) case compression_method_bits when RESERVED raise 'Should not encounter RESERVED block!' when NO_COMPRESSION inflate_stored_block ( lz77 , input_buffer , yield_byte ) when FIXED_HUFFMAN_COMPRESSION inflate_fixed_huffman_block ( lz77 , input_buffer , yield_byte ) when DYNAMIC_HUFFMAN_COMPRESSION inflate_dynamic_huffman_block ( lz77 , input_buffer , yield_byte ) end end
Dispatch to the correct inflation method, depending on the compression method bits.
Dispatch to the correct inflation method depending on the compression method bits .
compression_method_bits
lz77
input_buffer
yield_byte