Mercurial > touhou
diff utils/src/lzss.rs @ 757:21b186be2590
Split the Rust version into multiple crates.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 05 Jan 2021 02:16:32 +0100 |
parents | src/util/lzss.rs@afa012bb8021 |
children | daa23a4ff24d |
line wrap: on
line diff
copy from src/util/lzss.rs copy to utils/src/lzss.rs --- a/src/util/lzss.rs +++ b/utils/src/lzss.rs @@ -1,7 +1,7 @@ //! LZSS implementation. use std::io; -use crate::util::bitstream::BitStream; +use crate::bitstream::BitStream; /// Decompresses a LZSS-compressed file. pub fn decompress<R: io::Read + io::Seek>(bitstream: &mut BitStream<R>, size: usize, dictionary_size: usize, offset_size: usize, length_size: usize, minimum_match_length: usize) -> io::Result<Vec<u8>> {