private bool IsValidLeadBytes(int v1, int v2, int v3, int v4) { // First two chars of a four char base64 sequence can't be ==, and must be valid return ((v1 | v2) < 64) && ((v3 | v4) != 0xFF); }