Lines Matching refs:dictBuffer
22 import com.android.inputmethod.latin.makedict.BinaryDictDecoderUtils.DictBuffer;
40 private static ProbabilityInfo readProbabilityInfo(final DictBuffer dictBuffer) {
42 return new ProbabilityInfo(dictBuffer.readUnsignedByte());
45 protected static int readPtNodeOptionFlags(final DictBuffer dictBuffer) {
46 return dictBuffer.readUnsignedByte();
49 protected static int readChildrenAddress(final DictBuffer dictBuffer,
53 return dictBuffer.readUnsignedByte();
55 return dictBuffer.readUnsignedShort();
57 return dictBuffer.readUnsignedInt24();
65 protected static int readShortcut(final DictBuffer dictBuffer,
67 final int pointerBefore = dictBuffer.position();
68 dictBuffer.readUnsignedShort(); // skip the size
70 final int targetFlags = dictBuffer.readUnsignedByte();
71 final String word = CharEncoding.readString(dictBuffer);
76 return dictBuffer.position() - pointerBefore;
79 protected static int readBigramAddresses(final DictBuffer dictBuffer,
84 final int bigramFlags = dictBuffer.readUnsignedByte();
91 bigramAddress += sign * dictBuffer.readUnsignedByte();
95 bigramAddress += sign * dictBuffer.readUnsignedShort();
99 bigramAddress += sign * dictBuffer.readUnsignedInt24();
120 protected DictBuffer mDictBuffer;
158 /* package */ DictBuffer getDictBuffer() {
163 /* package */ DictBuffer openAndGetDictBuffer() throws FileNotFoundException, IOException {