tesseract 4.1.1
|
#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 76 of file serialis.h.
tesseract::TFile::TFile | ( | ) |
Definition at line 92 of file serialis.cpp.
tesseract::TFile::~TFile | ( | ) |
Definition at line 99 of file serialis.cpp.
bool tesseract::TFile::CloseWrite | ( | const STRING & | filename, |
FileWriter | writer | ||
) |
Definition at line 311 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | char * | data, |
size_t | count = 1 |
||
) |
Definition at line 104 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | double * | data, |
size_t | count = 1 |
||
) |
Definition at line 108 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | float * | data, |
size_t | count = 1 |
||
) |
Definition at line 112 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 120 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 124 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 128 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 116 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 136 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 140 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 144 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 132 of file serialis.cpp.
char * tesseract::TFile::FGets | ( | char * | buffer, |
int | buffer_size | ||
) |
Definition at line 249 of file serialis.cpp.
int tesseract::TFile::FRead | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 271 of file serialis.cpp.
int tesseract::TFile::FReadEndian | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 260 of file serialis.cpp.
int tesseract::TFile::FWrite | ( | const void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 319 of file serialis.cpp.
bool tesseract::TFile::Open | ( | const char * | data, |
int | size | ||
) |
Definition at line 211 of file serialis.cpp.
bool tesseract::TFile::Open | ( | const STRING & | filename, |
FileReader | reader | ||
) |
Definition at line 197 of file serialis.cpp.
bool tesseract::TFile::Open | ( | FILE * | fp, |
int64_t | end_offset | ||
) |
Definition at line 224 of file serialis.cpp.
void tesseract::TFile::OpenWrite | ( | GenericVector< char > * | data | ) |
Definition at line 296 of file serialis.cpp.
void tesseract::TFile::Rewind | ( | ) |
Definition at line 291 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const char * | data, |
size_t | count = 1 |
||
) |
Definition at line 148 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const double * | data, |
size_t | count = 1 |
||
) |
Definition at line 152 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const float * | data, |
size_t | count = 1 |
||
) |
Definition at line 156 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 164 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 168 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 172 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 160 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 180 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 184 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 188 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 176 of file serialis.cpp.
|
inline |
Definition at line 90 of file serialis.h.
bool tesseract::TFile::Skip | ( | size_t | count | ) |
Definition at line 192 of file serialis.cpp.