add WriteFloat TODO

pull/7576/head
Jan Tattermusch 5 years ago
parent 2bce090f32
commit 1e1d455423
  1. 1
      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)
{

Loading…
Cancel
Save