pub fn zigzag_encode<W: Write>(n: i64, writer: &mut W) -> Result<(), Error>
Zigzag encoding of a signed integer.