19 lines
534 B

#ifndef FILE_HELPER_H
#define FILE_HELPER_H
#include <QByteArray>
#include <QStringList>
#include "Utils.h"
class FileHelper
{
public:
FileHelper(){}
static bool ReadInputFile(QByteArray& arr, QString path, quint64* width, quint64* height);
static bool ReadInputFile(myint* arr, QString path, quint64* width, quint64* height);
static bool WriteOutputFile(char* arr, QString path, quint64 width, quint64 height);
static bool WriteOutputFile(myflt* arr, QString path, quint64 width, quint64 height);
};
#endif // FILE_HELPER_H