You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you provide me with a simple reproduction code?
Since ArgumentOutOfRangeException is a system exception message, we need to throw an exception that correctly traps the situation, so as pointed out, there is room for improvement.
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: capacity
System.Collections.Generic.HashSet
1[T]..ctor (System.Int32 capacity, System.Collections.Generic.IEqualityComparer
1[T] comparer) (at <378523c1e6ba4db992c5a1e98a5541ae>:0)MemoryPack.Formatters.HashSetFormatter
1[T].Deserialize (MemoryPack.MemoryPackReader& reader, System.Collections.Generic.HashSet
1[T]& value) (at Assets/Plugins/MemoryPack/Runtime/MemoryPack.Core/Formatters/CollectionFormatters.cs:411)UserInfoSave.Deserialize (MemoryPack.MemoryPackReader& reader, UserInfoSave& value) (at MemoryPack.Generator.Roslyn3/MemoryPack.Generator.MemoryPackGenerator/UserInfoSave.MemoryPackFormatter.g.cs:215)
UserInfoSave+UserInfoSaveFormatter.Deserialize (MemoryPack.MemoryPackReader& reader, UserInfoSave& value) (at MemoryPack.Generator.Roslyn3/MemoryPack.Generator.MemoryPackGenerator/UserInfoSave.MemoryPackFormatter.g.cs:280)
MemoryPack.MemoryPackSerializer.Deserialize[T] (System.Buffers.ReadOnlySequence`1[System.Byte]& buffer, T& value, MemoryPack.MemoryPackSerializerOptions options) (at Assets/Plugins/MemoryPack/Runtime/MemoryPack.Core/MemoryPackSerializer.Deserialize.cs:81)
The text was updated successfully, but these errors were encountered: