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

Method localize

src/proxy/IPAllow.cc:81–88  ·  view source on GitHub ↗

Begin API functions

Source from the content-addressed store, hash-verified

79// Begin API functions
80//
81swoc::TextView
82IpAllow::localize(swoc::TextView src)
83{
84 auto span = _arena.alloc(src.size() + 1).rebind<char>(); // always make a C-str if copying.
85 memcpy(span.data(), src.data(), src.size());
86 span[src.size()] = '\0';
87 return span.remove_suffix(1); // don't put the extra terminating nul in the view.
88}
89
90void
91IpAllow::startup()

Callers 2

YAMLLoadMethodMethod · 0.95
rehome_stringsMethod · 0.45

Calls 5

memcpyFunction · 0.50
allocMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
remove_suffixMethod · 0.45

Tested by

no test coverage detected