new ArraySchemas.CharArray(this, null, true); new ArraySchemas.CharArray(this, null, false); new ArraySchemas.CharArray(this, null, false)
new ArraySchemas.CharArray(this, null, true); new ArraySchemas.CharArray(this, null, false); new ArraySchemas.CharArray(this, null, false) { @Override public Object readFrom(Input input, Object owner) throws IOException {
new ArraySchemas.CharArray(this, null, true); new ArraySchemas.CharArray(this, null, false); new ArraySchemas.CharArray(this, null, false) { @Override public Object readFrom(Input input, Object owner) throws IOException {
new ArraySchemas.CharArray(this, null, true); new ArraySchemas.CharArray(this, null, false); new ArraySchemas.CharArray(this, null, false)
new ArraySchemas.CharArray(this, null, true); new ArraySchemas.CharArray(this, null, false); new ArraySchemas.CharArray(this, null, false) { @Override public Object readFrom(Input input, Object owner) throws IOException {
new ArraySchemas.CharArray(this, null, true); new ArraySchemas.CharArray(this, null, false); new ArraySchemas.CharArray(this, null, false) { @Override public Object readFrom(Input input, Object owner) throws IOException {
writeLengthTo(output, array.length, true); writeLengthTo(output, array.length, false);
writeLengthTo(output, array.length, true); writeLengthTo(output, array.length, false);
return new BoolArray(strategy, handler, compontentType.isPrimitive()); case ID_CHAR: return new CharArray(strategy, handler, compontentType.isPrimitive()); case ID_SHORT: return new ShortArray(strategy, handler, compontentType.isPrimitive());
return new BoolArray(strategy, handler, compontentType.isPrimitive()); case ID_CHAR: return new CharArray(strategy, handler, compontentType.isPrimitive()); case ID_SHORT: return new ShortArray(strategy, handler, compontentType.isPrimitive());
@Override public void writeTo(Output output, Object value) throws IOException { writeTo(output, value, primitive); } }
@Override public Object readFrom(Input input, Object owner) throws IOException { if (ID_ARRAY_LEN != input.readFieldNumber(this)) throw new ProtostuffException("Corrupt input."); final int len = input.readInt32(); return primitive ? readPrimitiveFrom(input, owner, len) : readBoxedFrom(input, owner, len); }
@Override public Object readFrom(Input input, Object owner) throws IOException { if (ID_ARRAY_LEN != input.readFieldNumber(this)) throw new ProtostuffException("Corrupt input."); final int len = input.readInt32(); return primitive ? readPrimitiveFrom(input, owner, len) : readBoxedFrom(input, owner, len); }
@Override public void writeTo(Output output, Object value) throws IOException { writeTo(output, value, primitive); } }