MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / GetCommandId

Function GetCommandId

Src/ChannelLinter/ChannelLinter.cpp:63–68  ·  view source on GitHub ↗

Get command id from string (allows negative inputs e.g "-2" for Close) @param command Id string @returns command Id @throws std::invalid_argument

Source from the content-addressed store, hash-verified

61 /// @returns command Id
62 /// @throws std::invalid_argument
63 uint16_t GetCommandId(std::string const& commandId)
64 {
65 // allow negative inputs
66 auto commandIdL = std::stoi(commandId);
67 return static_cast<uint16_t>(commandIdL);
68 }
69 }
70
71 ChannelLinter::ChannelLinter(AppConfig config) :

Callers 1

TranslateCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected