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

Function SaveFile

src/Common.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void SaveFile(const wchar_t* filePath, const void* data, size_t dataSize)
168{
169 FILE* f = nullptr;
170 _wfopen_s(&f, filePath, L"wb");
171 if(f)
172 {
173 fwrite(data, 1, dataSize, f);
174 fclose(f);
175 }
176 else
177 assert(0);
178}
179
180std::wstring SizeToStr(size_t size)
181{

Callers 1

SaveAllocatorStatsToFileFunction · 0.85

Calls

no outgoing calls

Tested by 1

SaveAllocatorStatsToFileFunction · 0.68