Closed hadashiA closed 3 months ago
Add [SuppressDefaultInitialization] attribute.
[SuppressDefaultInitialization]
e.g)
[MemoryPackable] partial class A { public int X; public int Y = 12345; [SkipOverwriteByDefault] public float Z = 678.9f; }
NEW: value = new FieldDefaultValue() { @X = __X, @Y = __Y }; if (3 <= count) value.@Z = __Z; // < Added this branch
185
Add
[SuppressDefaultInitialization]
attribute.e.g)