This commit is contained in:
Daniel Ledda
2025-01-11 17:02:49 +01:00
parent 1ae4a5fef9
commit ef930159e7
7 changed files with 172 additions and 158 deletions

View File

@@ -9,4 +9,12 @@ void os_reserve(void *ptr);
void os_decommit(void *ptr);
void os_free(void *ptr, size_t freeSize);
// ### File IO ###
string os_readEntireFile(Arena *arena, string filename);
bool os_writeEntireFile(Arena *arena, string filename, const byte *contents, size_t contentsLength);
bool os_fileAppend(Arena *arena, string filename, const byte *contents, size_t contentsLength);
// ### Standard IO ###
void os_log(LogTarget target, const char *fmt, va_list argList);
#endif