@Override public void read(NetInput in) throws IOException { this.channel = in.readString(); this.data = in.readBytes(in.available()); }
@Override public void read(NetInput in) throws IOException { this.serverId = in.readString(); this.publicKey = CryptUtil.decodePublicKey(in.readBytes(in.readVarInt())); this.verifyToken = in.readBytes(in.readVarInt()); }