diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-05 12:48:05 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-05 12:48:05 +1000 |
commit | dfb6adbcbcc7d50b770b6d5ea82efdd8f8c32e25 (patch) | |
tree | a470b91a90716d7ea46fde53ed395449c24583a2 /archive/src/platform/file.h | |
parent | 54354e32c6498cc7f8839ab4deb1208d37216cc5 (diff) |
delete documentation workflow
Diffstat (limited to 'archive/src/platform/file.h')
-rw-r--r-- | archive/src/platform/file.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/archive/src/platform/file.h b/archive/src/platform/file.h new file mode 100644 index 0000000..5e5e1e1 --- /dev/null +++ b/archive/src/platform/file.h @@ -0,0 +1,26 @@ +/** + * @file file.h + * @brief File I/O utilities + * @date 2024-02-24 + * @copyright Copyright (c) 2024 + */ +#pragma once + +#include "defines.h" +#include "str.h" + +typedef struct str8_opt { + Str8 contents; + bool has_value; +} str8_opt; + +const char* string_from_file(const char* path); + +str8_opt str8_from_file(arena* a, Str8 path); + +typedef struct { + char* data; + size_t size; +} FileData; + +FileData load_spv_file(const char* path); |