pub fn read_bounded(
reader: &mut impl Read,
max_bytes: u64,
) -> Result<Vec<u8>, DeclaredSizeFailure>Expand description
Read through EOF under an actual expanded-byte cap, including a one-byte overrun probe. Does not trust a declared ZIP size.