37 #define QUOTE_IT(parm) #parm 42 template <
typename T,
size_t N>
43 constexpr
size_t countof(T
const (&)[N]) noexcept {
56 bool DeSerialize(FILE* fp,
char* data,
size_t n = 1);
57 bool DeSerialize(FILE* fp,
float* data,
size_t n = 1);
58 bool DeSerialize(FILE* fp, int8_t* data,
size_t n = 1);
59 bool DeSerialize(FILE* fp, int16_t* data,
size_t n = 1);
60 bool DeSerialize(FILE* fp, int32_t* data,
size_t n = 1);
61 bool DeSerialize(FILE* fp, uint8_t* data,
size_t n = 1);
62 bool DeSerialize(FILE* fp, uint16_t* data,
size_t n = 1);
63 bool DeSerialize(FILE* fp, uint32_t* data,
size_t n = 1);
66 bool Serialize(FILE* fp,
const char* data,
size_t n = 1);
67 bool Serialize(FILE* fp,
const float* data,
size_t n = 1);
68 bool Serialize(FILE* fp,
const int8_t* data,
size_t n = 1);
69 bool Serialize(FILE* fp,
const int16_t* data,
size_t n = 1);
70 bool Serialize(FILE* fp,
const int32_t* data,
size_t n = 1);
71 bool Serialize(FILE* fp,
const uint8_t* data,
size_t n = 1);
72 bool Serialize(FILE* fp,
const uint16_t* data,
size_t n = 1);
73 bool Serialize(FILE* fp,
const uint32_t* data,
size_t n = 1);
87 bool Open(
const char* data,
int size);
89 bool Open(FILE* fp, int64_t end_offset);
126 char*
FGets(
char* buffer,
int buffer_size);
132 int FRead(
void* buffer,
size_t size,
int count);
145 int FWrite(
const void* buffer,
size_t size,
int count);
int FWrite(const void *buffer, size_t size, int count)
int FRead(void *buffer, size_t size, int count)
void OpenWrite(GenericVector< char > *data)
bool DeSerialize(char *data, size_t count=1)
char * FGets(char *buffer, int buffer_size)
bool Serialize(FILE *fp, const char *data, size_t n)
constexpr size_t countof(T const (&)[N]) noexcept
int FReadEndian(void *buffer, size_t size, int count)
void set_swap(bool value)
bool Serialize(const char *data, size_t count=1)
bool(* FileReader)(const STRING &filename, GenericVector< char > *data)
bool Open(const STRING &filename, FileReader reader)
bool CloseWrite(const STRING &filename, FileWriter writer)
bool DeSerialize(FILE *fp, char *data, size_t n)
bool(* FileWriter)(const GenericVector< char > &data, const STRING &filename)