Skip to content

Commit

Permalink
fix ability to disable block checksumming (#55)
Browse files Browse the repository at this point in the history
* fix to disable block checksumming
  • Loading branch information
pmarks authored Sep 26, 2024
1 parent aa3054e commit 14267fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl EncoderBuilder {
block_size: BlockSize::Default,
block_mode: BlockMode::Linked,
checksum: ContentChecksum::ChecksumEnabled,
block_checksum: BlockChecksum::NoBlockChecksum,
block_checksum: BlockChecksum::BlockChecksumEnabled,
level: 0,
auto_flush: false,
favor_dec_speed: false,
Expand Down Expand Up @@ -99,7 +99,7 @@ impl EncoderBuilder {
content_size: self.content_size.clone(),
frame_type: FrameType::Frame,
dict_id: 0,
block_checksum_flag: BlockChecksum::BlockChecksumEnabled,
block_checksum_flag: self.block_checksum.clone(),
},
compression_level: self.level,
auto_flush: if self.auto_flush { 1 } else { 0 },
Expand Down

0 comments on commit 14267fa

Please sign in to comment.