MCPcopy Create free account
hub / github.com/apache/brpc / set

Method set

src/butil/strings/string_piece.h:222–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 return *this;
221 }
222 void set(const value_type* data, size_type len) {
223 ptr_ = data;
224 length_ = len;
225 }
226 void set(const value_type* str) {
227 ptr_ = str;
228 length_ = str ? STRING_TYPE::traits_type::length(str) : 0;

Callers

nothing calls this directly

Calls 1

lengthFunction · 0.70

Tested by

no test coverage detected