C#: Consider using Unsafe
instead of BitConverter
to convert values to/from bytes
#1014
Labels
gen-c#
Related to the C# code generator
Per dotnet/runtimelab#2614 (comment),
Unsafe.Write
andUnsafe.As
might be more efficient thanBitConverter.TryWriteBytes
andBitConverter.To*
, respectively.The text was updated successfully, but these errors were encountered: