MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / replace_value

Method replace_value

common/string-keyed.h:260–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 return this->end() + 1;
259 }
260 void replace_value(std::string_view v) {
261 auto nk = this->size();
262 auto ptr = (char*) realloc((void*)this->data(), nk+1 + v.size()+1);
263 do_copy(ptr + nk+1, v);
264 assign({ptr, nk});
265 }
266};
267
268template <class M>

Callers 1

~MutableValueMethod · 0.45

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected