icerpc / icerpc-csharp

A C# RPC framework built for QUIC, with bidirectional streaming, first-class async/await, and Protobuf support.
https://docs.icerpc.dev
Apache License 2.0
101 stars 13 forks source link

Merge `request_decode_func` and `return_value_decode_func` #3907

Closed InsertCreativityHere closed 7 months ago

InsertCreativityHere commented 7 months ago

This PR merges request_decode_func and return_value_decode_func into a single function, since they were actually identical functions. This new function is named: decode_non_streamed_parameters_func.

It was fairly small, and after this change, decode_non_streamed_parameters was only called in one spot, in this function, so I also went ahead and inlined the function there.