MCPcopy Create free account
hub / github.com/acl-dev/acl / argv_to_string

Method argv_to_string

lib_acl_cpp/src/redis/redis_result.cpp:201–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201int redis_result::argv_to_string(string& buf, bool clear_auto /* = true */) const
202{
203 if (clear_auto) {
204 buf.clear();
205 }
206
207 if (idx_ == 0) {
208 return 0;
209 }
210
211 int length = 0;
212 for (size_t i = 0; i < idx_; i++) {
213 buf.append(argv_[i], lens_[i]);
214 length += (int) lens_[i];
215 }
216
217 return length;
218}
219
220int redis_result::argv_to_string(char* buf, size_t size) const
221{

Callers 15

initMethod · 0.45
set_nodesMethod · 0.45
get_jobsMethod · 0.45
helloMethod · 0.45
create_nodeMethod · 0.45
result_valueMethod · 0.45
get_stringMethod · 0.45
get_stringsMethod · 0.45
scan_keysMethod · 0.45
scanMethod · 0.45
get_messagesMethod · 0.45
get_one_messageMethod · 0.45

Calls 3

memcpyFunction · 0.85
clearMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected