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

Method reserve

lib_acl_cpp/src/redis/redis_request.cpp:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void redis_request::reserve(size_t size)
28{
29 if (size_ >= size) {
30 return;
31 }
32
33 size_t len = size * sizeof(struct iovec);
34
35 if (iov_ == NULL) {
36 iov_ = (struct iovec*) acl_mymalloc(len);
37 } else {
38 iov_ = (struct iovec*) acl_myrealloc(iov_, len);
39 }
40
41 size_ = size;
42}
43
44void redis_request::put(const char* data, size_t dlen)
45{

Callers 13

get_numberMethod · 0.45
get_number64Method · 0.45
get_statusMethod · 0.45
get_stringsMethod · 0.45
build_request2Method · 0.45
scanMethod · 0.45
sscanMethod · 0.45
eval_statusMethod · 0.45
eval_numberMethod · 0.45
eval_number64Method · 0.45
eval_stringsMethod · 0.45
get_with_scoresMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected