MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / Add

Method Add

include/vk_mem_alloc.h:5952–5961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5950
5951#ifndef _VMA_STRING_BUILDER_FUNCTIONS
5952void VmaStringBuilder::Add(const char* pStr)
5953{
5954 const size_t strLen = strlen(pStr);
5955 if (strLen > 0)
5956 {
5957 const size_t oldCount = m_Data.size();
5958 m_Data.resize(oldCount + strLen);
5959 memcpy(m_Data.data() + oldCount, pStr, strLen);
5960 }
5961}
5962
5963void VmaStringBuilder::AddNumber(uint32_t num)
5964{

Callers 11

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
WriteIndentMethod · 0.45

Calls 3

resizeMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected