MCPcopy Create free account
hub / github.com/Constellation/iv / BasicFixedString

Method BasicFixedString

iv/fixed_string.h:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 static const size_type npos;
26
27 BasicFixedString(const BasicStringPiece<char_type>& str) // NOLINT
28 : size_(str.size()),
29 data_() {
30 assert(size() <= MAX);
31 std::copy(str.begin(), str.end(), data());
32 data()[size()] = '\0';
33 }
34
35 operator BasicStringPiece<char_type>() {
36 return BasicStringPiece<char_type>(data(), size());

Callers

nothing calls this directly

Calls 5

sizeFunction · 0.85
dataFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected