Searched refs:lma_idx_buf_ (Results 1 – 4 of 4) sorted by relevance
36 lma_idx_buf_ = NULL; in DictTrie()64 if (NULL != lma_idx_buf_) in free_resource()65 free(lma_idx_buf_); in free_resource()66 lma_idx_buf_ = NULL; in free_resource()98 id = (id << 8) + lma_idx_buf_[id_offset * kLemmaIdSize + pos]; in get_lemma_id()99 id = (id << 8) + lma_idx_buf_[id_offset * kLemmaIdSize]; in get_lemma_id()136 if (fwrite(lma_idx_buf_, sizeof(unsigned char), lma_idx_buf_len_, fp) != in save_dict()190 lma_idx_buf_ = (unsigned char*)malloc(lma_idx_buf_len_); in load_dict()202 if (NULL == root_ || NULL == nodes_ge1_ || NULL == lma_idx_buf_ || in load_dict()217 if (fread(lma_idx_buf_, sizeof(unsigned char), lma_idx_buf_len_, fp) != in load_dict()
601 dict_trie->lma_idx_buf_ = new unsigned char[lma_idx_num * kLemmaIdSize]; in build_dict()603 assert(NULL != dict_trie->lma_idx_buf_); in build_dict()615 id_to_charbuf(dict_trie->lma_idx_buf_ + pos * kLemmaIdSize, in build_dict()623 id_to_charbuf(dict_trie->lma_idx_buf_ + pos * kLemmaIdSize, idx); in build_dict()
81 unsigned char *lma_idx_buf_; variable