From b8345246dcc2121bcb6d1515a9341789de20199f Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 27 Oct 2024 09:04:05 -0500 Subject: First crack at file objects. --- include/fud_c_file.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'include/fud_c_file.hpp') diff --git a/include/fud_c_file.hpp b/include/fud_c_file.hpp index b54b044..197abd3 100644 --- a/include/fud_c_file.hpp +++ b/include/fud_c_file.hpp @@ -22,6 +22,7 @@ #include "fud_result.hpp" #include "fud_status.hpp" #include "fud_string.hpp" +#include "fud_file.hpp" #include #include @@ -82,16 +83,6 @@ constexpr const char* CTextFileModeFromFlags(CFileMode mode) } } -struct [[nodiscard]] ReadResult { - size_t bytesRead{0}; - FudStatus status{FudStatus::Success}; -}; - -struct [[nodiscard]] WriteResult { - size_t bytesWritten{0}; - FudStatus status{FudStatus::Success}; -}; - namespace detail { template -- cgit v1.2.3