ddc
|
#include "utilit.h"
Go to the source code of this file.
Functions | |
size_t | get_size_in_bytes (const DWORD &t) |
size_t | save_to_bytes (const DWORD &i, BYTE *buf) |
size_t | restore_from_bytes (DWORD &i, const BYTE *buf) |
size_t | get_size_in_bytes (const int &t) |
size_t | save_to_bytes (const int &i, BYTE *buf) |
size_t | restore_from_bytes (int &i, const BYTE *buf) |
size_t | get_size_in_bytes (const char &t) |
size_t | save_to_bytes (const char &i, BYTE *buf) |
size_t | restore_from_bytes (char &i, const BYTE *buf) |
size_t | get_size_in_bytes (const BYTE &t) |
size_t | save_to_bytes (const BYTE &i, BYTE *buf) |
size_t | restore_from_bytes (BYTE &i, const BYTE *buf) |
size_t | get_size_in_bytes (const WORD &t) |
size_t | save_to_bytes (const WORD &i, BYTE *buf) |
size_t | restore_from_bytes (WORD &i, const BYTE *buf) |
size_t | get_size_in_bytes (const QWORD &t) |
size_t | save_to_bytes (const QWORD &i, BYTE *buf) |
size_t | restore_from_bytes (QWORD &i, const BYTE *buf) |
size_t | get_size_in_bytes (const double &t) |
size_t | save_to_bytes (const double &i, BYTE *buf) |
size_t | restore_from_bytes (double &i, const BYTE *buf) |
template<class T > | |
size_t | get_size_in_bytes (const pair< T, T > &t) |
template<class T > | |
size_t | save_to_bytes (const pair< T, T > &t, BYTE *buf) |
template<class T > | |
size_t | restore_from_bytes (pair< T, T > &t, const BYTE *buf) |
template<class T > | |
size_t | get_size_in_bytes (const pair< QWORD, T > &t) |
template<class T > | |
size_t | save_to_bytes (const pair< QWORD, T > &t, BYTE *buf) |
template<class T > | |
size_t | restore_from_bytes (pair< QWORD, T > &t, const BYTE *buf) |
template<class T > | |
size_t | get_size_in_bytes (const troika< T, T, T > &t) |
template<class T > | |
size_t | save_to_bytes (const troika< T, T, T > &t, BYTE *buf) |
template<class T > | |
size_t | restore_from_bytes (troika< T, T, T > &t, const BYTE *buf) |
template<class T > | |
bool | BinaryReadItem (FILE *fp, T &V) |
template<class T > | |
void | ReadVectorInner (FILE *fp, vector< T > &V, size_t Count) |
template<class T > | |
size_t | GetSizeInBytes () |
template<class T > | |
void | ReadVector (const string &FileName, vector< T > &V) |
template<class T > | |
bool | BinaryWriteItem (FILE *fp, const T &V) |
template<class T > | |
bool | WriteVectorInner (FILE *fp, const vector< T > &V) |
template<class T > | |
bool | WriteVector (const string &FileName, const vector< T > &V) |
Variables | |
const int | VectorMaxStructSize = 200 |
|
inline |
Referenced by BinaryReadItem(), BinaryWriteItem(), get_size_in_bytes(), GetSizeInBytes(), ReadVector(), ReadVectorInner(), restore_from_bytes(), save_to_bytes(), and WriteVectorInner().
References get_size_in_bytes().
Referenced by BinaryWriteItem(), save_to_bytes(), and WriteVectorInner().
References get_size_in_bytes().
Referenced by BinaryReadItem(), ReadVectorInner(), and restore_from_bytes().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References get_size_in_bytes(), save_to_bytes(), and troika< T1, T2, T3 >::third.
References get_size_in_bytes(), restore_from_bytes(), and troika< T1, T2, T3 >::third.
bool BinaryReadItem | ( | FILE * | fp, |
T & | V | ||
) |
References get_size_in_bytes(), restore_from_bytes(), and VectorMaxStructSize.
void ReadVectorInner | ( | FILE * | fp, |
vector< T > & | V, | ||
size_t | Count | ||
) |
References TinyXPath::dummy, Format(), get_size_in_bytes(), restore_from_bytes(), and VectorMaxStructSize.
Referenced by CMorphDict::Load(), CStaticVectorMap< T >::LoadVectorMap(), CItemIndexForLoading::ReadFromTemporalFile(), CShortStringHolder::ReadShortStringHolder(), and ReadVector().
size_t GetSizeInBytes | ( | ) |
|
inline |
References TinyXPath::dummy, FileSize(), get_size_in_bytes(), and ReadVectorInner().
Referenced by CStatistic::Load(), CDwdsThesaurus::LoadDwdsThesaurus(), LoadFileToString(), CDocumentIterator::NextDocument(), ddcVecFile< CIndexItem >::open(), and CStringIndexator::ReadIndicesFromTheDisk().
bool BinaryWriteItem | ( | FILE * | fp, |
const T & | V | ||
) |
References get_size_in_bytes(), save_to_bytes(), and VectorMaxStructSize.
bool WriteVectorInner | ( | FILE * | fp, |
const vector< T > & | V | ||
) |
References TinyXPath::dummy, get_size_in_bytes(), save_to_bytes(), and VectorMaxStructSize.
Referenced by CMorphDict::Save(), CStaticVectorMap< T >::SaveVectorMap(), CItemIndexForLoading::WriteOccurrences(), CIndexSetForQueryingStage::WritePeriodsDivision(), CShortStringHolder::WriteShortStringHolder(), CItemIndexForLoading::WriteToTemporalFile(), and WriteVector().
|
inline |
References ErrorMessage(), and WriteVectorInner().
Referenced by CFreeBiblIndex::ConvertAndSaveToDiskAfterIndexing(), CStringIndexator::FinalSaveAllIndices(), CConcXml::FinalSaveBibliography(), CConcIndexator::SaveMaskedFileIds(), SaveStringToFile(), and CStringIndexSet::WriteToFile().
const int VectorMaxStructSize = 200 |
Referenced by BinaryReadItem(), BinaryWriteItem(), ReadVectorInner(), and WriteVectorInner().