| 45 | constinit const std::array<const char *, PF_NUM_OF_ITEM_TYPES> protocol_feature_names = MakeProtocolFeatureNames(); |
| 46 | |
| 47 | void |
| 48 | protocol_features_print(Client &client, Response &r) noexcept |
| 49 | { |
| 50 | const auto protocol_feature = client.GetProtocolFeatures(); |
| 51 | for (unsigned i = 0; i < PF_NUM_OF_ITEM_TYPES; i++) |
| 52 | if (protocol_feature.Test(ProtocolFeatureType(i))) |
| 53 | r.Fmt("feature: {}\n", protocol_feature_names[i]); |
| 54 | } |
| 55 | |
| 56 | void |
| 57 | protocol_features_print_all(Response &r) noexcept |