public void Write(IBitWriter writer) { ActI.Write(writer); ActII.Write(writer); ActIII.Write(writer); ActIV.Write(writer); ActV.Write(writer); }
public void Write(IBitWriter writer) { writer.WriteUInt16(Header ?? 0x102); int startPos = writer.Position; ActI.Write(writer); ActII.Write(writer); ActIII.Write(writer); ActIV.Write(writer); ActV.Write(writer); int endPos = writer.Position; writer.Align(); Span <byte> padding = stackalloc byte[13]; padding.Clear(); writer.WriteBytes(padding); }