MCPcopy Create free account
hub / github.com/apache/brpc / set

Method set

src/brpc/ts.cpp:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236TsChannel* TsChannelGroup::set(TsPid pid) {
237 std::map<TsPid, TsChannel>::iterator it = _pids.find(pid);
238 if (it == _pids.end()) {
239 return &_pids[pid];
240 } else {
241 return &it->second;
242 }
243}
244
245TsPacket::TsPacket(TsChannelGroup* g)
246 : _modified(false)

Callers 9

TEST_FFunction · 0.45
TYPED_TESTFunction · 0.45
TESTFunction · 0.45
ConsumeImplMethod · 0.45
PsiEncodeMethod · 0.45
set_socketFunction · 0.45
SplitIntoServerAndTagFunction · 0.45
ALPNProtocolToStringFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 3

TEST_FFunction · 0.36
TYPED_TESTFunction · 0.36
TESTFunction · 0.36