MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / dataInternal

Method dataInternal

Sources/Shared/Containers/String.cpp:94–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 inline String::Data String::dataInternal() const {
95 if (_small.size & Implementation::SmallStringBit)
96 return {_small.data, _small.size & ~SmallSizeMask};
97 return {_large.data, _large.size & ~LargeSizeMask};
98 }
99
100 String::String() noexcept {
101 // Create a zero-size small string to fullfil the guarantee of data() being always non-null and null-terminated

Callers 1

String.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected