MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / GetString

Function GetString

src/common/protobuf.cpp:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91std::string_view GetString(const std::vector<Field>& fields, uint32_t fieldNum) {
92 auto* f = FindField(fields, fieldNum);
93 if (!f || f->wireType != LengthDelimited) return {};
94 return { (const char*)f->data, f->dataLen };
95}
96
97// Writer implementation
98

Callers 3

RecvPktMonitorHookFunction · 0.85
RewriteGamesPlayedFunction · 0.85
OnSendPktFunction · 0.85

Calls 1

FindFieldFunction · 0.85

Tested by

no test coverage detected