MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / getChannelModeFromString

Function getChannelModeFromString

edrav2/iprj/libcore/src/jsonrpc.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28//
29//
30ChannelMode getChannelModeFromString(std::string_view sMode)
31{
32 if (sMode == c_sPlain)
33 return ChannelMode::Plain;
34 if (sMode == c_sEncrypted)
35 return ChannelMode::Encrypted;
36 if (sMode == c_sBoth)
37 return ChannelMode::Both;
38 return ChannelMode::Invalid;
39}
40
41//
42//

Callers 2

finalConstructMethod · 0.85
finalConstructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected