diff options
author | Yoshifumi Kawai <ils@neue.cc> | 2020-01-19 18:14:38 +0300 |
---|---|---|
committer | Yoshifumi Kawai <ils@neue.cc> | 2020-01-19 18:14:38 +0300 |
commit | 7dcc75ff95a03a12dd2c725e33468267456effe6 (patch) | |
tree | d6659fff19c694b242a510133f72c1209893ff7c | |
parent | f5b557e03f3ac1d3b3f024026c1cab2ac00f8d83 (diff) |
reset span
-rw-r--r-- | src/MessagePack.UnityClient/Assets/Scripts/MessagePack/Formatters/StandardClassLibraryFormatter.cs | 5 |
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 |