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

Method load_cli_args

plugins/experimental/txn_box/plugin/src/Config.cc:751–762  ·  view source on GitHub ↗

------------------------------------------------------------------------------------ */

Source from the content-addressed store, hash-verified

749}
750/* ------------------------------------------------------------------------------------ */
751Errata
752Config::load_cli_args(Handle handle, const std::vector<std::string> &args, int arg_idx, YamlCache *cache)
753{
754 using argv_type = char const *; // Overall clearer in context of pointers to pointers.
755 std::unique_ptr<argv_type[]> buff{new argv_type[args.size()]};
756 swoc::MemSpan<argv_type> argv{buff.get(), args.size()};
757 int idx = 0;
758 for (auto const &arg : args) {
759 argv[idx++] = arg.c_str();
760 }
761 return this->load_cli_args(std::move(handle), argv, arg_idx, cache);
762}
763
764Errata
765Config::load_cli_args(Handle handle, swoc::MemSpan<char const *> argv, int arg_idx, YamlCache *cache)

Callers 3

TSRemapNewInstanceFunction · 0.80
Task_ConfigReloadFunction · 0.80
TxnBoxInitFunction · 0.80

Calls 14

load_file_globMethod · 0.95
ErrataClass · 0.85
prefix_atMethod · 0.80
starts_with_nocaseMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45
c_strMethod · 0.45
countMethod · 0.45
emptyMethod · 0.45
substrMethod · 0.45
is_okMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected