MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / data

Function data

Source/ThirdParty/pugixml/pugixml.cpp:6858–6871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6856 }
6857
6858 char_t* data(xpath_allocator* alloc)
6859 {
6860 // make private heap copy
6861 if (!_uses_heap)
6862 {
6863 size_t length_ = strlength(_buffer);
6864
6865 _buffer = duplicate_string(_buffer, length_, alloc);
6866 _uses_heap = true;
6867 _length_heap = length_;
6868 }
6869
6870 return const_cast<char_t*>(_buffer);
6871 }
6872
6873 bool empty() const
6874 {

Callers

nothing calls this directly

Calls 2

strlengthFunction · 0.85
duplicate_stringFunction · 0.85

Tested by

no test coverage detected