| 858 | } |
| 859 | |
| 860 | int |
| 861 | SessionProtocolNameRegistry::toIndexConst(TextView name) |
| 862 | { |
| 863 | int zret = this->indexFor(name); |
| 864 | if (INVALID == zret) { |
| 865 | if (m_n < MAX) { |
| 866 | m_names[m_n] = name; |
| 867 | zret = m_n++; |
| 868 | } else { |
| 869 | ink_release_assert(!"Session protocol name registry overflow"); |
| 870 | } |
| 871 | } |
| 872 | return zret; |
| 873 | } |
| 874 | |
| 875 | int |
| 876 | SessionProtocolNameRegistry::indexFor(TextView name) const |
no test coverage detected