pub fn write_consistency(c: Consistency, buf: &mut impl BufMut)