tesseract
5.0.0-alpha-619-ge9db
|
#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 75 of file serialis.h.
tesseract::TFile::TFile | ( | ) |
Definition at line 105 of file serialis.cpp.
tesseract::TFile::~TFile | ( | ) |
Definition at line 112 of file serialis.cpp.
bool tesseract::TFile::CloseWrite | ( | const STRING & | filename, |
FileWriter | writer | ||
) |
Definition at line 324 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | char * | data, |
size_t | count = 1 |
||
) |
Definition at line 117 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | double * | data, |
size_t | count = 1 |
||
) |
Definition at line 121 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | float * | data, |
size_t | count = 1 |
||
) |
Definition at line 125 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 133 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 137 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 141 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | int8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 129 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 149 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 153 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 157 of file serialis.cpp.
bool tesseract::TFile::DeSerialize | ( | uint8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 145 of file serialis.cpp.
char * tesseract::TFile::FGets | ( | char * | buffer, |
int | buffer_size | ||
) |
Definition at line 262 of file serialis.cpp.
int tesseract::TFile::FRead | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 284 of file serialis.cpp.
int tesseract::TFile::FReadEndian | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
int tesseract::TFile::FWrite | ( | const void * | buffer, |
size_t | size, | ||
int | count | ||
) |
Definition at line 332 of file serialis.cpp.
bool tesseract::TFile::Open | ( | const char * | data, |
int | size | ||
) |
Definition at line 224 of file serialis.cpp.
bool tesseract::TFile::Open | ( | const STRING & | filename, |
FileReader | reader | ||
) |
Definition at line 210 of file serialis.cpp.
bool tesseract::TFile::Open | ( | FILE * | fp, |
int64_t | end_offset | ||
) |
Definition at line 237 of file serialis.cpp.
void tesseract::TFile::OpenWrite | ( | GenericVector< char > * | data | ) |
Definition at line 309 of file serialis.cpp.
void tesseract::TFile::Rewind | ( | ) |
Definition at line 304 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const char * | data, |
size_t | count = 1 |
||
) |
Definition at line 161 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const double * | data, |
size_t | count = 1 |
||
) |
Definition at line 165 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const float * | data, |
size_t | count = 1 |
||
) |
Definition at line 169 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 177 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 181 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 185 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const int8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 173 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint16_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 193 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint32_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 197 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint64_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 201 of file serialis.cpp.
bool tesseract::TFile::Serialize | ( | const uint8_t * | data, |
size_t | count = 1 |
||
) |
Definition at line 189 of file serialis.cpp.
|
inline |
Definition at line 89 of file serialis.h.
bool tesseract::TFile::Skip | ( | size_t | count | ) |
Definition at line 205 of file serialis.cpp.