diff options
Diffstat (limited to '')
-rw-r--r-- | fast_encoder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fast_encoder.cc b/fast_encoder.cc index 21e1a2b..dfbb429 100644 --- a/fast_encoder.cc +++ b/fast_encoder.cc @@ -133,7 +133,7 @@ bool FLZ_encoder::encode_member( const unsigned long long member_size ) const uint8_t cur_byte = fmatchfinder[0]; renc.encode_bit( bm_match[state()][0], 0 ); encode_literal( prev_byte, cur_byte ); - crc32.update( crc_, cur_byte ); + crc32.update_byte( crc_, cur_byte ); fmatchfinder.longest_match_len( 1 ); } @@ -153,7 +153,7 @@ bool FLZ_encoder::encode_member( const unsigned long long member_size ) } if( len > min_match_len && len + 4 > main_len ) { - crc32.update( crc_, fmatchfinder.ptr_to_current_pos(), len ); + crc32.update_buf( crc_, fmatchfinder.ptr_to_current_pos(), len ); renc.encode_bit( bm_match[state()][pos_state], 1 ); renc.encode_bit( bm_rep[state()], 1 ); const bool bit = ( dis == 0 ); @@ -178,7 +178,7 @@ bool FLZ_encoder::encode_member( const unsigned long long member_size ) if( main_len > min_match_len || ( main_len == min_match_len && match_distance < modeled_distances ) ) { - crc32.update( crc_, fmatchfinder.ptr_to_current_pos(), main_len ); + crc32.update_buf( crc_, fmatchfinder.ptr_to_current_pos(), main_len ); dis = match_distance; renc.encode_bit( bm_match[state()][pos_state], 1 ); renc.encode_bit( bm_rep[state()], 0 ); @@ -193,7 +193,7 @@ bool FLZ_encoder::encode_member( const unsigned long long member_size ) const uint8_t prev_byte = fmatchfinder[-1]; const uint8_t cur_byte = fmatchfinder[0]; const uint8_t match_byte = fmatchfinder[-reps[0]-1]; - crc32.update( crc_, cur_byte ); + crc32.update_byte( crc_, cur_byte ); fmatchfinder.move_pos(); if( match_byte == cur_byte ) |