tesseract
4.0.0-1-g2a2b
|
#include <serialis.h>
Public Member Functions | |
TFile () | |
~TFile () | |
bool | Open (const STRING &filename, FileReader reader) |
bool | Open (const char *data, int size) |
bool | Open (FILE *fp, int64_t end_offset) |
void | set_swap (bool value) |
bool | DeSerialize (char *data, size_t count=1) |
bool | DeSerialize (double *data, size_t count=1) |
bool | DeSerialize (float *data, size_t count=1) |
bool | DeSerialize (int8_t *data, size_t count=1) |
bool | DeSerialize (int16_t *data, size_t count=1) |
bool | DeSerialize (int32_t *data, size_t count=1) |
bool | DeSerialize (int64_t *data, size_t count=1) |
bool | DeSerialize (uint8_t *data, size_t count=1) |
bool | DeSerialize (uint16_t *data, size_t count=1) |
bool | DeSerialize (uint32_t *data, size_t count=1) |
bool | DeSerialize (uint64_t *data, size_t count=1) |
bool | Serialize (const char *data, size_t count=1) |
bool | Serialize (const double *data, size_t count=1) |
bool | Serialize (const float *data, size_t count=1) |
bool | Serialize (const int8_t *data, size_t count=1) |
bool | Serialize (const int16_t *data, size_t count=1) |
bool | Serialize (const int32_t *data, size_t count=1) |
bool | Serialize (const int64_t *data, size_t count=1) |
bool | Serialize (const uint8_t *data, size_t count=1) |
bool | Serialize (const uint16_t *data, size_t count=1) |
bool | Serialize (const uint32_t *data, size_t count=1) |
bool | Serialize (const uint64_t *data, size_t count=1) |
bool | Skip (size_t count) |
char * | FGets (char *buffer, int buffer_size) |
int | FReadEndian (void *buffer, size_t size, int count) |
int | FRead (void *buffer, size_t size, int count) |
void | Rewind () |
void | OpenWrite (GenericVector< char > *data) |
bool | CloseWrite (const STRING &filename, FileWriter writer) |
int | FWrite (const void *buffer, size_t size, int count) |
Definition at line 77 of file serialis.h.
tesseract::TFile::TFile | ( | ) |
Definition at line 91 of file serialis.cpp.
tesseract::TFile::~TFile | ( | ) |
Definition at line 98 of file serialis.cpp.
bool tesseract::TFile::CloseWrite | ( | const STRING & | filename, |
FileWriter | writer | ||
) |
Definition at line 310 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | char * | data, |
size_t | count = 1 |
||
) |
Definition at line 103 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | double * | data, |
size_t | count = 1 |
||
) |
Definition at line 107 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | float * | data, |
size_t | count = 1 |
||
) |
Definition at line 111 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 115 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 119 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 123 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 127 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 131 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 135 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 139 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 143 of file serialis.cpp.
char * tesseract::TFile::FGets | ( | char * | buffer, |
int | buffer_size | ||
) |
Definition at line 248 of file serialis.cpp.
int tesseract::TFile::FRead | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 270 of file serialis.cpp.
int tesseract::TFile::FReadEndian | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 259 of file serialis.cpp.
int tesseract::TFile::FWrite | ( | const void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 318 of file serialis.cpp.
bool tesseract::TFile::Open | ( | const STRING & | filename, |
FileReader | reader | ||
) |
Definition at line 196 of file serialis.cpp.
bool tesseract::TFile::Open | ( | const char * | data, |
int | size | ||
) |
Definition at line 210 of file serialis.cpp.
bool tesseract::TFile::Open | ( | FILE * | fp, |
int64_t | end_offset | ||
) |
Definition at line 223 of file serialis.cpp.
void tesseract::TFile::OpenWrite | ( | GenericVector< char > * | data | ) |
Definition at line 295 of file serialis.cpp.
void tesseract::TFile::Rewind | ( | ) |
Definition at line 290 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const char * | data, |
size_t | count = 1 |
||
) |
Definition at line 147 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const double * | data, |
size_t | count = 1 |
||
) |
Definition at line 151 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const float * | data, |
size_t | count = 1 |
||
) |
Definition at line 155 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 159 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 163 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 167 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 171 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 175 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 179 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 183 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 187 of file serialis.cpp.
|
inline |
Definition at line 91 of file serialis.h.
bool tesseract::TFile::Skip | ( | size_t | count | ) |
Definition at line 191 of file serialis.cpp.