From ff907c6ffa7ed0a7c6ce938b40a6c223dd0a3b9d Mon Sep 17 00:00:00 2001 From: omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> Date: Wed, 27 Mar 2024 22:09:03 +1100 Subject: start going through Kohi episode 26 --- src/platform/file.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/platform/file.h') diff --git a/src/platform/file.h b/src/platform/file.h index 8bb22c8..83d1317 100644 --- a/src/platform/file.h +++ b/src/platform/file.h @@ -16,4 +16,11 @@ typedef struct str8_opt { const char* string_from_file(const char* path); -str8_opt str8_from_file(arena* a, str8 path); \ No newline at end of file +str8_opt str8_from_file(arena* a, str8 path); + +typedef struct { + char *data; + size_t size; +} FileData; + +FileData load_spv_file(const char *path); \ No newline at end of file -- cgit v1.2.3-70-g09d2