MCPcopy Create free account
hub / github.com/apache/trafficserver / operator()

Method operator()

include/proxy/http/PreWarmManager.h:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59{
60struct DstHash {
61 size_t
62 operator()(const PreWarm::SPtrConstDst &dst) const
63 {
64 CryptoHash hash;
65 CryptoContext context{};
66
67 context.update(dst->host.data(), dst->host.size());
68 context.update(&dst->port, sizeof(in_port_t));
69 context.update(&dst->type, sizeof(SNIRoutingType));
70 context.update(&dst->alpn_index, sizeof(int));
71
72 context.finalize(hash);
73
74 return static_cast<size_t>(hash.fold());
75 }
76};
77
78struct DstKeyEqual {

Callers

nothing calls this directly

Calls 4

updateMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected