Home | History | Annotate | Download | only in makedict

Lines Matching refs:destination

260     static int writeSInt24ToStream(final OutputStream destination, final int value)
263 destination.write((byte)(((value < 0 ? 0x80 : 0) | (absValue >> 16)) & 0xFF));
264 destination.write((byte)((absValue >> 8) & 0xFF));
265 destination.write((byte)(absValue & 0xFF));
272 private static int writeVariableAddress(final OutputStream destination, final int value)
276 destination.write((byte)value);
279 destination.write((byte)(0xFF & (value >> 8)));
280 destination.write((byte)(0xFF & value));
283 destination.write((byte)(0xFF & (value >> 16)));
284 destination.write((byte)(0xFF & (value >> 8)));
285 destination.write((byte)(0xFF & value));
306 * @param destination the stream to write.
311 private static int writeString(final OutputStream destination, final String word)
318 destination.write((byte)codePoint);
321 destination.write((byte)(0xFF & (codePoint >> 16)));
322 destination.write((byte)(0xFF & (codePoint >> 8)));
323 destination.write((byte)(0xFF & codePoint));
327 destination.write((byte)FormatSpec.PTNODE_CHARACTERS_TERMINATOR);
338 * @param destination the stream to write.
342 private static int writePtNode(final OutputStream destination, final PtNodeInfo info)
345 destination.write((byte)info.mFlags);
348 size += writeSInt24ToStream(destination, parentOffset);
352 destination.write((byte)info.mCharacters[i]);
355 size += writeSInt24ToStream(destination, info.mCharacters[i]);
359 destination.write((byte)FormatSpec.PTNODE_CHARACTERS_TERMINATOR);
364 destination.write((byte)info.mFrequency);
375 writeSInt24ToStream(destination, childrenOffset);
381 destination.write((byte)(shortcutListSize >> 8));
382 destination.write((byte)(shortcutListSize & 0xFF));
387 destination.write((byte)BinaryDictEncoderUtils.makeShortcutFlags(
390 size += writeString(destination, target.mWord);
418 destination.write((byte)bigramFlags);
419 size += writeVariableAddress(destination, Math.abs(bigramOffset));
450 * @param destination the stream to write.
455 static int writeNodes(final OutputStream destination, final PtNodeInfo[] infos)
460 destination.write((byte)infos.length);
463 destination.write((byte)(infos.length >> 8));
464 destination.write((byte)(infos.length & 0xFF));
469 for (final PtNodeInfo info : infos) size += writePtNode(destination, info);
470 writeSInt24ToStream(destination, FormatSpec.NO_FORWARD_LINK_ADDRESS);