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

Method append

src/butil/iobuf.cpp:1029–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027
1028
1029void IOBuf::append(const IOBuf& other) {
1030 const size_t nref = other._ref_num();
1031 for (size_t i = 0; i < nref; ++i) {
1032 _push_back_ref(other._ref_at(i));
1033 }
1034}
1035
1036void IOBuf::append(const Movable& movable_other) {
1037 if (empty()) {

Callers 15

senderFunction · 0.45
EchoMethod · 0.45
PerformanceTestMethod · 0.45
SendRequestMethod · 0.45
TestMethod · 0.45
senderFunction · 0.45
EchoMethod · 0.45
senderFunction · 0.45
EchoMethod · 0.45
senderFunction · 0.45
EchoMethod · 0.45
senderFunction · 0.45

Calls 11

release_blockref_arrayFunction · 0.85
appendFunction · 0.85
share_tls_blockFunction · 0.85
cpFunction · 0.85
_ref_numMethod · 0.80
_smallMethod · 0.80
swapFunction · 0.70
emptyFunction · 0.50
valueMethod · 0.45
capacityMethod · 0.45
left_spaceMethod · 0.45

Tested by 15

TestMethod · 0.36
GetCompleteCommandFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
HandshakeWithServerMethod · 0.36
SerializeErrorMethod · 0.36
MakeRequestMessageMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
ProcessRpcRequestMethod · 0.36
TestBaiduMasterServiceFunction · 0.36
TestGenericCallFunction · 0.36