MCPcopy Create free account
hub / github.com/apache/trafficserver / toIndexConst

Method toIndexConst

src/records/RecHttp.cc:860–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860int
861SessionProtocolNameRegistry::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
875int
876SessionProtocolNameRegistry::indexFor(TextView name) const

Calls 1

indexForMethod · 0.95

Tested by

no test coverage detected