pub fn read_consistency(
    buf: &mut &[u8]
) -> Result<LegacyConsistency, ParseError>