pub type StreamSize<T> = fn(&mut T) -> i64;
Return the total size of the stream in bytes. Panic on error.