MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / VmaCreateStringCopy

Function VmaCreateStringCopy

ThirdParty/VMA/vk_mem_alloc.h:4287–4300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4285}
4286
4287static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr)
4288{
4289 if(srcStr != VMA_NULL)
4290 {
4291 const size_t len = strlen(srcStr);
4292 char* const result = vma_new_array(allocs, char, len + 1);
4293 memcpy(result, srcStr, len + 1);
4294 return result;
4295 }
4296 else
4297 {
4298 return VMA_NULL;
4299 }
4300}
4301
4302static void VmaFreeString(const VkAllocationCallbacks* allocs, char* str)
4303{

Callers 2

SetUserDataMethod · 0.85
SetNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected