You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more for user feedback than anything, but I was looking for a way to know how many bytes of the compressed source had been read, rather than the number of decompressed bytes, so that I can get accurate ETA's.
For example:
let input = File::open(input.expect("Could not get path"))?;let size = input.metadata()?.len();let reader = BufReader::new(input);letmut md = MultiBzDecoder::new(reader);letmut buffer = [0;BUFFER_LENGTH];letmut n = md.read(&mut buffer)?;
n appears to me to be how many uncompressed bytes were read, How do I know how far along in the file I've read and how it compares to size?
The text was updated successfully, but these errors were encountered:
This is more for user feedback than anything, but I was looking for a way to know how many bytes of the compressed source had been read, rather than the number of decompressed bytes, so that I can get accurate ETA's.
For example:
n
appears to me to be how many uncompressed bytes were read, How do I know how far along in the file I've read and how it compares tosize
?The text was updated successfully, but these errors were encountered: