Lines Matching defs:chars
355 * @param chars is the array of values to be written.
359 * @throws NullPointerException if the chars parameter is null.
361 public final TupleOutput writeBytes(char[] chars) {
363 for (int i = 0; i < chars.length; i++) {
364 writeFast((byte) chars[i]);
374 * @param chars is the array of characters to be written.
378 * @throws NullPointerException if the chars parameter is null.
380 public final TupleOutput writeChars(char[] chars) {
382 for (int i = 0; i < chars.length; i++) {
383 writeFast((byte) (chars[i] >>> 8));
384 writeFast((byte) chars[i]);
396 * @param chars is the array of characters to be written.
400 * @throws NullPointerException if the chars parameter is null.
402 public final TupleOutput writeString(char[] chars) {
404 if (chars.length == 0) return this;
406 int utfLength = UtfOps.getByteLength(chars);
409 UtfOps.charsToBytes(chars, 0, getBufferBytes(), getBufferLength(),
410 chars.length);