public char[] read (Kryo kryo, Input input, Class<char[]> type) { int length = input.readVarInt(true); if (length == NULL) return null; return input.readChars(length - 1); }
public char[] read (Kryo kryo, Input input, Class<char[]> type) { int length = input.readVarInt(true); if (length == NULL) return null; return input.readChars(length - 1); }
public char[] read (Kryo kryo, Input input, Class<char[]> type) { int length = input.readVarInt(true); if (length == NULL) return null; return input.readChars(length-1); }
public char[] read (Kryo kryo, Input input, Class<char[]> type) { int length = input.readVarInt(true); if (length == NULL) return null; return input.readChars(length-1); }
/** Bulk input of a char array. */ public char[] readChars (int length) throws KryoException { if (capacity - position >= length * 2 && isNativeOrder()) { char[] array = new char[length]; CharBuffer buf = niobuffer.asCharBuffer(); buf.get(array); position += length * 2; niobuffer.position(position); return array; } else return super.readChars(length); }
/** Bulk input of a char array. */ public char[] readChars (int length) throws KryoException { if (capacity - position >= length * 2 && isNativeOrder()) { char[] array = new char[length]; CharBuffer buf = niobuffer.asCharBuffer(); buf.get(array); position += length * 2; niobuffer.position(position); return array; } else return super.readChars(length); }
/** Bulk input of a char array. */ public char[] readChars (int length) throws KryoException { if (capacity - position >= length * 2 && isNativeOrder()) { char[] array = new char[length]; CharBuffer buf = niobuffer.asCharBuffer(); buf.get(array); position += length * 2; niobuffer.position(position); return array; } else return super.readChars(length); }
/** Bulk input of a char array. */ public char[] readChars (int length) throws KryoException { if (capacity - position >= length * 2 && isNativeOrder()) { char[] array = new char[length]; CharBuffer buf = niobuffer.asCharBuffer(); buf.get(array); position += length * 2; niobuffer.position(position); return array; } else return super.readChars(length); }