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

Method Add

modules/engine/graphics/src/d3d12/D3D12MemAlloc.cpp:1199–1208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197
1198#ifndef _D3D12MA_STRING_BUILDER_FUNCTIONS
1199void StringBuilder::Add(LPCWSTR str)
1200{
1201 const size_t len = wcslen(str);
1202 if (len > 0)
1203 {
1204 const size_t oldCount = m_Data.size();
1205 m_Data.resize(oldCount + len);
1206 memcpy(m_Data.data() + oldCount, str, len * sizeof(WCHAR));
1207 }
1208}
1209
1210void StringBuilder::AddNumber(UINT num)
1211{

Callers 13

event_tMethod · 0.45
addFunction · 0.45
BeginObjectMethod · 0.45
EndObjectMethod · 0.45
BeginArrayMethod · 0.45
EndArrayMethod · 0.45
BeginStringMethod · 0.45
ContinueStringMethod · 0.45
EndStringMethod · 0.45
WriteBoolMethod · 0.45
WriteNullMethod · 0.45
BeginValueMethod · 0.45

Calls 4

memcpyFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected