You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Return has a required string result, the generator writes a C# method whose return value is marshalled as an in parameter. The expected behaviour occurs if we declare it in the proto as a pointer to char const which is_produced. Moreover, SayHello returns a string literal to a marshaller which will destroy it, this probably won't end well.
The text was updated successfully, but these errors were encountered:
eggrobin
changed the title
Returning a string is messed up in generated interface
Returning a string is messed up in the generated interface
Dec 25, 2016
If the
Return
has arequired string result
, the generator writes a C# method whose return value is marshalled as an in parameter. The expected behaviour occurs if we declare it in the proto as a pointer to char const whichis_produced
. Moreover,SayHello
returns a string literal to a marshaller which will destroy it, this probably won't end well.The text was updated successfully, but these errors were encountered: