tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
37 #define QUOTE_IT(parm) #parm
42 template <
typename T,
size_t N>
43 constexpr
size_t countof(T
const (&)[N]) noexcept {
53 const char* filename);
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);
127 char*
FGets(
char* buffer,
int buffer_size);
133 int FRead(
void* buffer,
size_t size,
int count);
146 int FWrite(
const void* buffer,
size_t size,
int count);
bool(*)(const GenericVector< char > &data, const char *filename) FileWriter
int FReadEndian(void *buffer, size_t size, int count)
constexpr size_t countof(T const (&)[N]) noexcept
bool(*)(const char *filename, GenericVector< char > *data) FileReader
bool Open(const STRING &filename, FileReader reader)
int FRead(void *buffer, size_t size, int count)
bool CloseWrite(const STRING &filename, FileWriter writer)
bool DeSerialize(char *data, size_t count=1)
bool Serialize(const char *data, size_t count=1)
void set_swap(bool value)
char * FGets(char *buffer, int buffer_size)
int FWrite(const void *buffer, size_t size, int count)
bool DeSerialize(FILE *fp, char *data, size_t n=1)
void OpenWrite(GenericVector< char > *data)
bool Serialize(FILE *fp, const char *data, size_t n=1)