MCPcopy Create free account
hub / github.com/GPUOpen-Tools/radeon_gpu_analyzer / AddString

Method AddString

external/celf/Src/CElfStringTable.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39size_t
40CElfStringTable::AddString(
41 const std::string& str)
42{
43 size_t location = m_Data.size();
44 // Plus 1 for the NUL.
45 m_Data.resize(location + str.size() + 1);
46 memcpy(&m_Data[location], str.data(), str.size());
47 m_Data[location + str.size()] = '\0';
48
49 return location;
50}

Callers 1

WriteMethod · 0.80

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected