From ba61d76e5218f2a1c7240b2ac6a9fc98c9ae9ba2 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Wed, 3 Jun 2020 15:54:29 +0200 Subject: [PATCH] simplify serialization to single span --- csharp/src/Google.Protobuf/MessageExtensions.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/csharp/src/Google.Protobuf/MessageExtensions.cs b/csharp/src/Google.Protobuf/MessageExtensions.cs index d0db44bbc3..8fd356730e 100644 --- a/csharp/src/Google.Protobuf/MessageExtensions.cs +++ b/csharp/src/Google.Protobuf/MessageExtensions.cs @@ -176,7 +176,6 @@ namespace Google.Protobuf WriteContext.Initialize(ref output, out WriteContext ctx); WritingPrimitivesMessages.WriteRawMessage(ref ctx, message); - ctx.Flush(); ctx.CheckNoSpaceLeft(); }