use of io.protostuff.InputEx in project incubator-servicecomb-java-chassis by apache.
the class RootDeserializer method deserialize.
@SuppressWarnings("unchecked")
public T deserialize(byte[] bytes) throws IOException {
InputEx input = new ByteArrayInputEx(bytes);
T instance = schema.newMessage();
schema.mergeFrom(input, instance);
return instance;
}
use of io.protostuff.InputEx in project java-chassis by ServiceComb.
the class RootDeserializer method deserialize.
@SuppressWarnings("unchecked")
public T deserialize(byte[] bytes) throws IOException {
InputEx input = new ByteArrayInputEx(bytes);
T instance = schema.newMessage();
schema.mergeFrom(input, instance);
return instance;
}
Aggregations