Open mhowlett opened 7 years ago
Marshaling of string values into librdkafka (for topic names and config) is currently achieved by decorating method arguments with [MarshalAs(UnmanagedType.LPStr)]. It would be better to do this using a custom function that encodes values as UTF-8.
[MarshalAs(UnmanagedType.LPStr)]
For reference: https://github.com/dotnet/coreclr/pull/4793/files
Only available in netcoreapp2.0 yet (not standard)
Marshaling of string values into librdkafka (for topic names and config) is currently achieved by decorating method arguments with
[MarshalAs(UnmanagedType.LPStr)]
. It would be better to do this using a custom function that encodes values as UTF-8.