MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / copy

Method copy

Bcore/src/main/cpp/base/stringpiece.h:151–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 size_type copy(char* buf, size_type n, size_type pos = 0) const {
152 size_type ret = std::min(length_ - pos, n);
153 memcpy(buf, ptr_ + pos, ret);
154 return ret;
155 }
156
157 size_type find(const StringPiece& s, size_type pos = 0) const {
158 if (length_ == 0 || pos > static_cast<size_type>(length_)) {

Callers 1

sFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected