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

Function FlushComponent

src/brpc/redis_command.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static void FlushComponent(std::string* out, std::string* compbuf, int* ncomp) {
71 AppendHeader(*out, '$', compbuf->size());
72 out->append(*compbuf);
73 out->append("\r\n", 2);
74 compbuf->clear();
75 ++*ncomp;
76}
77
78// Support hiredis-style format, namely everything is same with printf except
79// that %b corresponds to binary-data + length. Notice that we can't use

Callers 2

RedisCommandFormatVFunction · 0.85
RedisCommandNoFormatFunction · 0.85

Calls 4

AppendHeaderFunction · 0.85
sizeMethod · 0.45
appendMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected