| 1971 | bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } |
| 1972 | ImU64 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; } |
| 1973 | ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } |
| 1974 | ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } |
| 1975 | #endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS |
| 1976 |
no outgoing calls
no test coverage detected