varint Usage Write let mut c = Cursor::new(Vec::new()); c.seek(SeekFrom::Start(0)).unwrap(); write::<u8, _>(&mut c, 1 as u8); Read let data0 = [0x01]; read::<u8, _>(&data0[..]);