Jan Tattermusch пре 5 година
родитељ
комит
1e1d455423
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      csharp/src/Google.Protobuf/WritingPrimitives.cs

+ 1 - 0
csharp/src/Google.Protobuf/WritingPrimitives.cs

@@ -65,6 +65,7 @@ namespace Google.Protobuf
         [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public static void WriteFloat(ref Span<byte> buffer, ref WriterInternalState state, float value)
         {
+            // TODO: avoid allocating a byte array!!!
             byte[] rawBytes = BitConverter.GetBytes(value);
             if (!BitConverter.IsLittleEndian)
             {