18 lines
759 B
C++
18 lines
759 B
C++
#ifndef FILES_FILES_H_
|
|
#define FILES_FILES_H_
|
|
|
|
#include <string>
|
|
#include "../typedefs.h"
|
|
|
|
extern bool write_binary_file(std::string filename, const char* data, size_t size);
|
|
extern unsigned int append_binary_file(std::string filename, const char* data, size_t size);
|
|
extern bool read_binary_file(std::string filename, char* data, size_t size);
|
|
extern bool read_binary_file(std::string filename, char* data, size_t offset, size_t size);
|
|
extern char* read_binary_file(std::string filename, size_t& length);
|
|
|
|
extern size_t calcRLE(const ubyte* src, size_t length);
|
|
extern size_t compressRLE(const ubyte* src, size_t length, ubyte* dst);
|
|
extern size_t decompressRLE(const ubyte* src, size_t length, ubyte* dst, size_t targetLength);
|
|
|
|
#endif /* FILES_FILES_H_ */
|