MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / ImFileWrite

Function ImFileWrite

Dependencies/ImGui/src/imgui.cpp:2395–2395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2393ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; }
2394ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); }
2395ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); }
2396#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS
2397
2398// Helper: Load file content into memory

Callers 2

LogTextVFunction · 0.70
SaveIniSettingsToDiskMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected