// // Created on 2024-05-17. // #ifndef NANDPARTITIONTABLECONVERT_OS_UTILS_H #define NANDPARTITIONTABLECONVERT_OS_UTILS_H #include #include #include #include #include #include bool ReadFile(std::string_view path, std::vector& out, size_t maxSize, int& errorCode); bool WriteFile(std::string_view path, std::span data, int& errorCode); std::string GetErrorMsg(int errorCode); #endif //NANDPARTITIONTABLECONVERT_OS_UTILS_H