MCPcopy Create free account
hub / github.com/cinience/RedisStudio / append

Method append

RedisStudio/SSDB/bytes.cpp:129–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129int Buffer::append(char c){
130 while(1 > this->space()){
131 if(this->grow() == -1){
132 return -1;
133 }
134 }
135
136 *(this->slot()) = c;
137 size_ += 1;
138 return 1;
139}
140
141int Buffer::append(const void *p, int size){
142 while(size > this->space()){

Callers 4

real_dirnameFunction · 0.80
str_escapeFunction · 0.80
sendMethod · 0.80
RealKeyMethod · 0.80

Calls 5

spaceMethod · 0.95
growMethod · 0.95
slotMethod · 0.95
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected