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

Method Find

src/brpc/amf.cpp:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134const AMFField* AMFObject::Find(const char* name) const {
135 std::map<std::string, AMFField>::const_iterator it =
136 butil::find_cstr(_fields, name);
137 if (it != _fields.end()) {
138 return &it->second;
139 }
140 return NULL;
141}
142
143void AMFField::SetString(const butil::StringPiece& str) {
144 // TODO: Try to reuse the space.

Callers 6

TEST_FFunction · 0.45
InitMethod · 0.45
OnCreateStreamMethod · 0.45
RunMethod · 0.45
GetNamingServiceThreadFunction · 0.45

Calls 2

find_cstrFunction · 0.50
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.36