diff options
Diffstat (limited to 'source/core/slang-io.h')
| -rw-r--r-- | source/core/slang-io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/slang-io.h b/source/core/slang-io.h index a077d416b..50ce67784 100644 --- a/source/core/slang-io.h +++ b/source/core/slang-io.h @@ -14,12 +14,12 @@ namespace Slang public: static bool exists(const String& fileName); - static String readAllText(const String& fileName); + static SlangResult readAllText(const String& fileName, String& outString); - static List<unsigned char> readAllBytes(const String& fileName); + static SlangResult readAllBytes(const String& fileName, List<unsigned char>& out); static SlangResult readAllBytes(const String& fileName, ScopedAllocation& out); - static void writeAllText(const String& fileName, const String& text); + static SlangResult writeAllText(const String& fileName, const String& text); static SlangResult writeAllBytes(const String& fileName, const void* data, size_t size); |
