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

Method put_data

lib_acl_cpp/src/redis/redis_client.cpp:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180/////////////////////////////////////////////////////////////////////////////
181
182void redis_client::put_data(dbuf_pool* dbuf, redis_result* rr,
183 const char* data, size_t len)
184{
185 char* buf = (char*) dbuf->dbuf_alloc(len + 1);
186 if (len > 0)
187 memcpy(buf, data, len);
188 buf[len] = 0;
189 rr->put(buf, len);
190}
191
192redis_result* redis_client::get_error(socket_stream& conn, dbuf_pool* dbuf)
193{

Callers

nothing calls this directly

Calls 3

memcpyFunction · 0.85
dbuf_allocMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected