pub fn parse_error<E>(buf: &[u8], ext: &E) -> Result<XcbError>where
    E: ExtensionInfoProvider,