Home
last modified time | relevance | path

Searched refs:dictBuffer (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java265 static String readString(final DictBuffer dictBuffer) { in readString() argument
267 int character = readChar(dictBuffer); in readString()
270 character = readChar(dictBuffer); in readString()
283 static int readChar(final DictBuffer dictBuffer) { in readChar() argument
284 int character = dictBuffer.readUnsignedByte(); in readChar()
290 character += dictBuffer.readUnsignedShort(); in readChar()
299 /* package */ static int readPtNodeCount(final DictBuffer dictBuffer) { in readPtNodeCount() argument
300 final int msb = dictBuffer.readUnsignedByte(); in readPtNodeCount()
305 + dictBuffer.readUnsignedByte(); in readPtNodeCount()
DBinaryDictDecoderEncoderTests.java316 final DictBuffer dictBuffer = new ByteArrayDictBuffer(buffer); in testCharEncoding() local
320 dictBuffer.position(0); in testCharEncoding()
321 final String str = CharEncoding.readString(dictBuffer); in testCharEncoding()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dformat_utils.cpp47 const ReadOnlyByteArrayView dictBuffer) { in detectFormatVersion() argument
51 if (dictBuffer.size() < DICTIONARY_MINIMUM_SIZE) { in detectFormatVersion()
54 const uint32_t magicNumber = ByteArrayUtils::readUint32(dictBuffer.data(), 0); in detectFormatVersion()
65 return getFormatVersion(ByteArrayUtils::readUint16(dictBuffer.data(), 4)); in detectFormatVersion()
Dformat_utils.h51 static FORMAT_VERSION detectFormatVersion(const ReadOnlyByteArrayView dictBuffer);