-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ec8144
commit 1507282
Showing
9 changed files
with
101 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"rust-analyzer.cargo.features": ["default", "lzma"] | ||
"rust-analyzer.cargo.features": ["default", "lzma", "deflate64"] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
crates/rc-zip/src/reader/sync/entry_reader/deflate64_dec.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use std::io::{BufReader, Read}; | ||
|
||
use deflate64::Deflate64Decoder; | ||
|
||
use crate::reader::sync::{Decoder, LimitedReader}; | ||
|
||
impl<R> Decoder<R> for Deflate64Decoder<BufReader<R>> | ||
where | ||
R: Read, | ||
{ | ||
fn into_inner(self: Box<Self>) -> R { | ||
Self::into_inner(*self).into_inner() | ||
} | ||
|
||
fn get_mut(&mut self) -> &mut R { | ||
Self::get_mut(self).get_mut() | ||
} | ||
} | ||
|
||
pub(crate) fn mk_decoder(r: LimitedReader) -> impl Decoder<LimitedReader> { | ||
Deflate64Decoder::new(r) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters