libnative-utilities/include/utils/FileWriter.hpp

29 lines
368 B
C++
Raw Permalink Normal View History

2024-08-15 18:40:30 +08:00
#ifndef FILEWRITER_HPP
#define FILEWRITER_HPP
#include <stdio.h>
class FileWriter{
private:
FILE* fd;
public:
FileWriter(const char* path);
void write(const char* data, unsigned int length);
void reset();
void seekTo(unsigned int length);
unsigned int getCurrentFileSize();
~FileWriter();
};
#endif // FILEWRITER_H