-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lzbuffer: own output sink instead of holding ref
Changes `LZBuffer` trait to consume the output sink instead of holding a reference to it. This makes it easier to store the sink and avoids self-referential structs. It also makes sense for the buffer to own the sink while it is performing decompression. This also adds the methods `get_output` and `get_output_mut` to access the output sink.
- Loading branch information
1 parent
9b2261c
commit 17e7aa2
Showing
3 changed files
with
77 additions
and
44 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
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