MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / VmaCreateStringCopy

Function VmaCreateStringCopy

include/vk_mem_alloc.h:4226–4236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4224}
4225
4226static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr)
4227{
4228 if (srcStr != VMA_NULL)
4229 {
4230 const size_t len = strlen(srcStr);
4231 char* const result = vma_new_array(allocs, char, len + 1);
4232 memcpy(result, srcStr, len + 1);
4233 return result;
4234 }
4235 return VMA_NULL;
4236}
4237
4238#if VMA_STATS_STRING_ENABLED
4239static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen)

Callers 3

SetNameMethod · 0.85
vmaBuildStatsStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected