[][src]Function pgp::util::write_all

pub fn write_all(writer: &mut impl Write, buf: &[u8]) -> Result<()>

The same as the std lib, but doesn't choke on write 0. This is a hack, to be compatible with rust-base64.