1
Fork 0

use BufReader for counting zero bytes

This commit is contained in:
Yoshiki Matsuda 2022-04-29 16:54:27 +09:00
parent 34f888941e
commit 1be58056e1
2 changed files with 18 additions and 14 deletions

View file

@ -297,6 +297,10 @@ impl FileEncoder {
}
}
pub fn file(&self) -> &File {
&self.file
}
#[inline]
fn capacity(&self) -> usize {
self.buf.len()