MCPcopy Create free account
hub / github.com/apache/impala / STLAssignToString

Function STLAssignToString

be/src/gutil/stl_util.h:298–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298inline void STLAssignToString(string* str, const char* ptr, size_t n) {
299 STLStringResizeUninitialized(str, n);
300 if (n == 0) return;
301 memcpy(&*str->begin(), ptr, n);
302}
303
304inline void STLAppendToString(string* str, const char* ptr, size_t n) {
305 if (n == 0) return;

Callers 1

CopyToStringMethod · 0.85

Calls 2

beginMethod · 0.45

Tested by

no test coverage detected