From 16cc793f924e1ea067cadfc3bf13ffa7d8190cd2 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 15 Mar 2020 18:01:58 +0100 Subject: [PATCH] Expose function to add decompression chunks --- Cargo.toml | 2 +- src/io.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ead6ed1..9d06932 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bdflib" -version = "0.4.2" +version = "0.4.3" authors = ["trivernis "] edition = "2018" license-file = "LICENSE" diff --git a/src/io.rs b/src/io.rs index 3cc97ee..fadd855 100644 --- a/src/io.rs +++ b/src/io.rs @@ -273,7 +273,7 @@ impl BDFReader { } /// 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()?; if gen_chunk.name == DTBL_CHUNK_NAME.to_string() && self.compressed { if let Err(_) = self.thread_manager.sender_work.send(gen_chunk) {