#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) |
Private Attributes | |
int | offset_ |
GenericVector< char > * | data_ |
bool | data_is_owned_ |
bool | is_writing_ |
bool | swap_ |
tesseract::TFile::TFile | ( | ) |
tesseract::TFile::~TFile | ( | ) |
bool tesseract::TFile::CloseWrite | ( | const STRING & | filename, |
FileWriter | writer | ||
) |
bool tesseract::TFile::DeSerialize | ( | char * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | double * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | float * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | int8_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | int16_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | int32_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | int64_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | uint8_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | uint16_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | uint32_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::DeSerialize | ( | uint64_t * | data, |
size_t | count = 1 |
||
) |
char * tesseract::TFile::FGets | ( | char * | buffer, |
int | buffer_size | ||
) |
int tesseract::TFile::FRead | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
int tesseract::TFile::FReadEndian | ( | void * | buffer, |
size_t | size, | ||
int | count | ||
) |
int tesseract::TFile::FWrite | ( | const void * | buffer, |
size_t | size, | ||
int | count | ||
) |
bool tesseract::TFile::Open | ( | const STRING & | filename, |
FileReader | reader | ||
) |
bool tesseract::TFile::Open | ( | const char * | data, |
int | size | ||
) |
bool tesseract::TFile::Open | ( | FILE * | fp, |
int64_t | end_offset | ||
) |
void tesseract::TFile::OpenWrite | ( | GenericVector< char > * | data | ) |
void tesseract::TFile::Rewind | ( | ) |
bool tesseract::TFile::Serialize | ( | const char * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const double * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const float * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const int8_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const int16_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const int32_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const int64_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const uint8_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const uint16_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const uint32_t * | data, |
size_t | count = 1 |
||
) |
bool tesseract::TFile::Serialize | ( | const uint64_t * | data, |
size_t | count = 1 |
||
) |
|
inline |
bool tesseract::TFile::Skip | ( | size_t | count | ) |
|
private |
|
private |
|
private |
|
private |
|
private |