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

Method copy

be/src/gutil/strings/stringpiece.cc:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int StringPiece::copy(char* buf, size_type n, size_type pos) const {
59 int ret = min(length_ - pos, n);
60 memcpy(buf, ptr_ + pos, ret);
61 return ret;
62}
63
64bool StringPiece::contains(StringPiece s) const {
65 return find(s, 0) != npos;

Callers 2

get_flake8_commentsFunction · 0.45
SetThreadNameMethod · 0.45

Calls 1

minFunction · 0.85

Tested by

no test coverage detected