diff --git a/src/formats/Data/Serialization/Items/DataCenterRawAttribute.cs b/src/formats/Data/Serialization/Items/DataCenterRawAttribute.cs index 910a768..3e7a8a3 100644 --- a/src/formats/Data/Serialization/Items/DataCenterRawAttribute.cs +++ b/src/formats/Data/Serialization/Items/DataCenterRawAttribute.cs @@ -43,7 +43,7 @@ public static void Write(ref SpanWriter writer, DataCenterArchitecture architect writer.WriteInt32(item.Value); if (architecture == DataCenterArchitecture.X64) - writer.Advance(sizeof(uint)); + writer.WriteUInt32(0); // Write a deterministic padding value. } public readonly bool Equals(DataCenterRawAttribute other) diff --git a/src/formats/Data/Serialization/Items/DataCenterRawNode.cs b/src/formats/Data/Serialization/Items/DataCenterRawNode.cs index 0b4a7ad..e64204f 100644 --- a/src/formats/Data/Serialization/Items/DataCenterRawNode.cs +++ b/src/formats/Data/Serialization/Items/DataCenterRawNode.cs @@ -62,12 +62,12 @@ public static void Write(ref SpanWriter writer, DataCenterArchitecture architect DataCenterRawAddress.Write(ref writer, architecture, item.AttributeAddress); if (architecture == DataCenterArchitecture.X64) - writer.Advance(sizeof(uint)); + writer.WriteUInt32(0); // Write a deterministic padding value. DataCenterRawAddress.Write(ref writer, architecture, item.ChildAddress); if (architecture == DataCenterArchitecture.X64) - writer.Advance(sizeof(uint)); + writer.WriteUInt32(0); // Write a deterministic padding value. } public readonly bool Equals(DataCenterRawNode other)