Expose function to add decompression chunks

master
trivernis 5 years ago
parent 726977a1b3
commit 16cc793f92

@ -1,6 +1,6 @@
[package] [package]
name = "bdflib" name = "bdflib"
version = "0.4.2" version = "0.4.3"
authors = ["trivernis <trivernis@gmail.com>"] authors = ["trivernis <trivernis@gmail.com>"]
edition = "2018" edition = "2018"
license-file = "LICENSE" license-file = "LICENSE"

@ -273,7 +273,7 @@ impl BDFReader {
} }
/// Adds a chunk to the decompression channel to be decompressed by a worker thread /// Adds a chunk to the decompression channel to be decompressed by a worker thread
fn add_compression_chunk(&mut self) -> Result<(), Error> { pub fn add_compression_chunk(&mut self) -> Result<(), Error> {
let gen_chunk = self.next_chunk_raw()?; let gen_chunk = self.next_chunk_raw()?;
if gen_chunk.name == DTBL_CHUNK_NAME.to_string() && self.compressed { if gen_chunk.name == DTBL_CHUNK_NAME.to_string() && self.compressed {
if let Err(_) = self.thread_manager.sender_work.send(gen_chunk) { if let Err(_) = self.thread_manager.sender_work.send(gen_chunk) {

Loading…
Cancel
Save