#include "StdConc.h"
#include "IndexSet.h"
#include "StringIndexator.h"
#include "TempBigrams.h"
#include "ConcBigrams.h"
#include "../common/SortWithTempFiles.h"
size_t get_size_in_bytes | ( | const CSecondWord & | t | ) | [inline] |
References CSecondWord::m_EndOccurOffset, and CSecondWord::m_SecondWordId.
Referenced by BinaryReadItem(), BinaryWriteItem(), get_size_in_bytes(), GetSizeInBytes(), ReadVector(), ReadVectorInner(), restore_from_bytes(), save_to_bytes(), SortWithFiles(), UnionBinaryFiles(), and WriteVectorInner().
size_t save_to_bytes | ( | const CSecondWord & | i, | |
BYTE * | buf | |||
) | [inline] |
References get_size_in_bytes(), CSecondWord::m_EndOccurOffset, CSecondWord::m_SecondWordId, and CSecondWord::PackFlagsToDWORD().
Referenced by CHitBorders::AddBreakByIndex(), BinaryWriteItem(), save_to_bytes(), and WriteVectorInner().
size_t restore_from_bytes | ( | CSecondWord & | i, | |
const BYTE * | buf | |||
) | [inline] |
References get_size_in_bytes(), CSecondWord::InitFlagsFromDWORD(), CSecondWord::m_EndOccurOffset, and CSecondWord::m_SecondWordId.
Referenced by BinaryReadItem(), ReadVectorInner(), and restore_from_bytes().
bool ConvertBufferOffsetToTokenId | ( | const char * | filename, | |
const vector< CIndexItem > & | MainTokenIndex | |||
) |
References BinaryReadItem(), BinaryWriteItem(), CreateTempFileName(), FileSize(), CTempBigram::m_LeftTokenId, CTempBigram::m_RightTokenId, CExpc::m_strCause, and RmlMoveFile().
Referenced by CIndexSetForBigrams::ConvertTempBigramsToPersistent().
size_t get_size_in_bytes | ( | const CTempBigram2 & | t | ) | [inline] |
size_t save_to_bytes | ( | const CTempBigram2 & | i, | |
BYTE * | buf | |||
) | [inline] |
References get_size_in_bytes(), CTempBigram2::m_LeftBigramOffset, CTempBigram2::m_LeftTokenId, CTempBigram2::m_SecondWord, and save_to_bytes().
size_t restore_from_bytes | ( | CTempBigram2 & | i, | |
const BYTE * | buf | |||
) | [inline] |
References get_size_in_bytes(), CTempBigram2::m_LeftBigramOffset, CTempBigram2::m_LeftTokenId, CTempBigram2::m_SecondWord, and restore_from_bytes().