MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / copy

Method copy

include/stringzilla/stringzilla.hpp:1647–1651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645 std::size_t length() const noexcept { return first.size() + second.size(); }
1646
1647 size_type copy(pointer destination) const noexcept {
1648 first.copy(destination);
1649 second.copy(destination + first.length());
1650 return first.length() + second.length();
1651 }
1652
1653 size_type copy(pointer destination, size_type length) const noexcept {
1654 auto first_length = std::min(first.length(), length);

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected