#ifndef AFUN_BYTE_H #define AFUN_BYTE_H #include // NOLINT #include #include "aFunToolExport.h" namespace aFuntool { enum EndianType { little_endian = 0, big_endian }; AFUN_TOOL_EXPORT extern enum EndianType endian; AFUN_TOOL_EXPORT extern enum EndianType save_as; AFUN_TOOL_EXPORT void getEndian(); template bool byteWriteInt(FILE *file, T num);; AFUN_TOOL_EXPORT bool byteWriteStr(FILE *file, const char *str); AFUN_TOOL_EXPORT bool byteWriteStr(FILE *file, const std::string &str); template bool byteReadInt(FILE *file, T *num); AFUN_TOOL_EXPORT bool byteReadStr(FILE *file, std::string &str); AFUN_TOOL_EXPORT bool byteReadStr(FILE *file, char *&str); } #include "byte.template.h" #endif //AFUN_BYTE_H