Begin API functions
| 79 | // Begin API functions |
| 80 | // |
| 81 | swoc::TextView |
| 82 | IpAllow::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 | |
| 90 | void |
| 91 | IpAllow::startup() |
no test coverage detected