Cysharp / MemoryPack

Zero encoding extreme performance binary serializer for C# and Unity.
MIT License
3.25k stars 190 forks source link

Is it possible to utilise MemoryPack to compare serialized data of the same type? #298

Closed byte-arcane closed 2 months ago

byte-arcane commented 4 months ago

e.g. I serialize two objects of type T, and the binary stream is different.

Is there a way to identify which properties are different? output could be series of type "paths" e.g. "object.someProperty.someArray[2]"

I don't suppose there is, but are there any existing APIs in MemoryPack that would allow to implement this functionality in a nice, clean way? Obviously I only care about the serializable properties. I think it could be quite useful.

neuecc commented 2 months ago

can not.