Home
last modified time | relevance | path

Searched refs:dictBuf (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_reader.cpp40 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local
47 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
50 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
56 dictBuf, flags, MAX_WORD_LENGTH, nullptr /* codePointTable */, codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
64 terminalId = Ver4PatriciaTrieReadingUtils::getTerminalIdAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
71 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_pt_node_array_reader.cpp35 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid() local
41 dictBuf, &readingPos); in readPtNodeArrayInfoAndReturnIfValid()
64 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid() local
70 DynamicPtReadingUtils::getForwardLinkPosition(dictBuf, readingPos); in readForwardLinkAndReturnIfValid()
Dver4_patricia_trie_node_writer.cpp39 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsDeleted() local
45 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsDeleted()
70 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsMoved() local
76 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsMoved()
115 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsWillBecomeNonTerminal() local
121 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsWillBecomeNonTerminal()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_read_write_utils.cpp50 /* static */ int HeaderReadWriteUtils::getHeaderSize(const uint8_t *const dictBuf) { in getHeaderSize() argument
53 return ByteArrayUtils::readUint32(dictBuf, HEADER_MAGIC_NUMBER_SIZE in getHeaderSize()
58 HeaderReadWriteUtils::getFlags(const uint8_t *const dictBuf) { in getFlags() argument
59 return ByteArrayUtils::readUint16(dictBuf, in getFlags()
69 /* static */ void HeaderReadWriteUtils::fetchAllHeaderAttributes(const uint8_t *const dictBuf, in fetchAllHeaderAttributes() argument
71 const int headerSize = getHeaderSize(dictBuf); in fetchAllHeaderAttributes()
81 const int keyLength = ByteArrayUtils::readStringAndAdvancePosition(dictBuf, in fetchAllHeaderAttributes()
85 const int valueLength = ByteArrayUtils::readStringAndAdvancePosition(dictBuf, in fetchAllHeaderAttributes()
Dheader_policy.h35 HeaderPolicy(const uint8_t *const dictBuf, const FormatUtils::FORMAT_VERSION formatVersion) in HeaderPolicy() argument
37 mDictionaryFlags(HeaderReadWriteUtils::getFlags(dictBuf)), in HeaderPolicy()
38 mSize(HeaderReadWriteUtils::getHeaderSize(dictBuf)), in HeaderPolicy()
39 mAttributeMap(createAttributeMapAndReadAllAttributes(dictBuf)), in HeaderPolicy()
265 const uint8_t *const dictBuf);
Dheader_read_write_utils.h34 static int getHeaderSize(const uint8_t *const dictBuf);
36 static DictionaryFlags getFlags(const uint8_t *const dictBuf);
46 static void fetchAllHeaderAttributes(const uint8_t *const dictBuf,
Dheader_policy.cpp156 HeaderPolicy::createAttributeMapAndReadAllAttributes(const uint8_t *const dictBuf) { in createAttributeMapAndReadAllAttributes() argument
158 HeaderReadWriteUtils::fetchAllHeaderAttributes(dictBuf, &attributeMap); in createAttributeMapAndReadAllAttributes()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_reader.cpp49 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local
56 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
59 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
64 dictBuf, flags, MAX_WORD_LENGTH, mHeaderPolicy->getCodePointTable(), codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
73 terminalId = Ver4PatriciaTrieReadingUtils::getTerminalIdAndAdvancePosition(dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
88 dictBuf, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_pt_node_array_reader.cpp44 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readPtNodeArrayInfoAndReturnIfValid() local
50 dictBuf, &readingPos); in readPtNodeArrayInfoAndReturnIfValid()
73 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer); in readForwardLinkAndReturnIfValid() local
79 DynamicPtReadingUtils::getForwardLinkPosition(dictBuf, readingPos); in readForwardLinkAndReturnIfValid()
Dver4_patricia_trie_node_writer.cpp49 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsDeleted() local
55 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsDeleted()
79 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsMoved() local
85 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsMoved()
124 const uint8_t *const dictBuf = mTrieBuffer->getBuffer(usesAdditionalBuffer); in markPtNodeAsWillBecomeNonTerminal() local
130 PatriciaTrieReadingUtils::getFlagsAndAdvancePosition(dictBuf, &pos); in markPtNodeAsWillBecomeNonTerminal()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp136 /* static */ void PtReadingUtils::readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos, in readPtNodeInfo() argument
143 const NodeFlags flags = getFlagsAndAdvancePosition(dictBuf, &readingPos); in readPtNodeInfo()
146 dictBuf, flags, MAX_WORD_LENGTH, codePointTable, outCodePoint, &readingPos); in readPtNodeInfo()
148 readProbabilityAndAdvancePosition(dictBuf, &readingPos) : NOT_A_PROBABILITY; in readPtNodeInfo()
150 readChildrenPositionAndAdvancePosition(dictBuf, flags, &readingPos) : NOT_A_DICT_POS; in readPtNodeInfo()
Dpatricia_trie_reading_utils.h108 static void readPtNodeInfo(const uint8_t *const dictBuf, const int ptNodePos,