2013-01-19 22:42:50 +00:00
|
|
|
#ifndef _PAYSAGES_TOOLS_PACK_H_
|
|
|
|
#define _PAYSAGES_TOOLS_PACK_H_
|
2012-04-22 17:12:39 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct PackStream PackStream;
|
|
|
|
|
2012-12-24 11:24:27 +00:00
|
|
|
PackStream* packReadFile(const char* filepath);
|
|
|
|
PackStream* packWriteFile(const char* filepath);
|
2012-04-22 17:12:39 +00:00
|
|
|
void packCloseStream(PackStream* stream);
|
|
|
|
|
2012-06-17 09:40:40 +00:00
|
|
|
void packWriteDouble(PackStream* stream, double* value);
|
|
|
|
void packReadDouble(PackStream* stream, double* value);
|
2012-04-22 17:12:39 +00:00
|
|
|
void packWriteInt(PackStream* stream, int* value);
|
|
|
|
void packReadInt(PackStream* stream, int* value);
|
2012-07-05 17:05:03 +00:00
|
|
|
void packWriteString(PackStream* stream, char* value, int max_length);
|
|
|
|
void packReadString(PackStream* stream, char* value, int max_length);
|
2012-12-24 11:24:27 +00:00
|
|
|
|
2012-04-22 17:12:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|