@Override
public <T> T deserialize(byte[] data, Class<T> clz) throws IOException, ClassNotFoundException {
Kryo kryo = kryoThreadMap.get();
kryo.register(clz);
KryoObjectInput input = new KryoObjectInput(kryo, new FastInput(new ByteArrayInputStream(data)));
return (T) input.readObject();
}
KryoSerialization.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:rpc
作者:
评论列表
文章目录