I use the protobuf-net library to serialize some objects. I have a field
[ProtoMember(3, DataFormat = DataFormat.FixedSize, IsPacked = true)]
ushort[] foo;
When I set it to say ushort[] { 3 }, then serialize the whole object and read it in order. Then, when I set foo to either an empty array or zero, and serialize and read it again, it is not erased. I get an array with 3 in it. To make sure that this is not a problem with any file system, I changed the other properties and made a reverse move, and they all behaved as expected.
Does anyone know if this is a bug in an implementation or function?
source
share