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

Function Append1

be/src/gutil/strings/strcat.cc:28–31  ·  view source on GitHub ↗

Append is merely a version of memcpy that returns the address of the byte after the area just overwritten. It comes in multiple flavors to minimize call overhead.

Source from the content-addressed store, hash-verified

26// after the area just overwritten. It comes in multiple flavors to minimize
27// call overhead.
28static char *Append1(char *out, const AlphaNum &x) {
29 memcpy(out, x.data(), x.size());
30 return out + x.size();
31}
32
33static char *Append2(char *out, const AlphaNum &x1, const AlphaNum &x2) {
34 memcpy(out, x1.data(), x1.size());

Callers 3

StrCatFunction · 0.85
StrCatNineOrMoreFunction · 0.85
StrAppendFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected