Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/aspnet/MessagePack-CSharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshifumi Kawai <ils@neue.cc>2020-01-19 18:14:38 +0300
committerYoshifumi Kawai <ils@neue.cc>2020-01-19 18:14:38 +0300
commit7dcc75ff95a03a12dd2c725e33468267456effe6 (patch)
treed6659fff19c694b242a510133f72c1209893ff7c
parentf5b557e03f3ac1d3b3f024026c1cab2ac00f8d83 (diff)
reset span
-rw-r--r--src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs
index 83326d54..71bec659 100644
--- a/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs
+++ b/src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs
@@ -478,6 +478,11 @@ namespace MessagePack.Formatters
writer.Advance(written + 2);
return;
}
+ else
+ {
+ // reset writer's span previously acquired that does not use
+ writer.Advance(0);
+ }
}
#endif