pub fn stream_len(src: &mut dyn BytesSource) -> Result<u64>Expand description
Probe the total length of a seekable source non-destructively:
remembers the current position, seeks to End(0), and restores the
position before returning. Useful in any code path that wants the
inner length once and doesn’t care about reading the bytes.