Encoder: add output()
method
This commit is contained in:
parent
23babcc511
commit
8ceaeff9b7
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ impl<R: Read, W: Write> Encoder<R, W> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn output(self) -> W {
|
||||
self.writer
|
||||
}
|
||||
|
||||
pub fn encode(&mut self) -> Result<(), Error> {
|
||||
let mut total: usize = 0;
|
||||
loop {
|
||||
|
|
Loading…
Add table
Reference in a new issue