MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / size

Method size

tests/framework/src/doctest.cpp:650–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648
649DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wmaybe-uninitialized")
650String::size_type String::size() const {
651 if(isOnStack())
652 return last - (size_type(buf[last]) & 31); // using "last" would work only if "len" is 32
653 return data.size;
654}
655DOCTEST_GCC_SUPPRESS_WARNING_POP
656
657String::size_type String::capacity() const {

Calls 2

isOnStackFunction · 0.85
size_typeEnum · 0.50

Tested by

no test coverage detected