| 4224 | } |
| 4225 | |
| 4226 | static 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 |
| 4239 | static char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr, size_t strLen) |
no outgoing calls
no test coverage detected