use BufReader for counting zero bytes
This commit is contained in:
parent
34f888941e
commit
1be58056e1
2 changed files with 18 additions and 14 deletions
|
@ -297,6 +297,10 @@ impl FileEncoder {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn file(&self) -> &File {
|
||||
&self.file
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn capacity(&self) -> usize {
|
||||
self.buf.len()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue