private Object[] getInvokeArgs(Request request, Class[] argTypes, Serializer serializer, boolean addStreamHandler) {
        List<ByteString> argsList = request.getArgsList();
        int size = addStreamHandler ? argsList.size() + 1 : argsList.size();

        Object[] args = new Object[size];
        for (int i = 0; i < argsList.size(); i++) {
            byte[] data = argsList.get(i).toByteArray();
            args[i] = serializer.decode(new ByteArrayWrapperByteBuf(data), argTypes[i],
                null);
        }
        return args;
    }
Get arguments from request.
@param addStreamHandler if addStreamHandler == true, the first arg will be left blank and set later.

@return params of target method.
remoting/remoting-triple/src/main/java/com/alipay/sofa/rpc/server/triple/GenericServiceImpl.java