Esempio n. 1
0
 public void Write(IBitWriter writer)
 {
     ActI.Write(writer);
     ActII.Write(writer);
     ActIII.Write(writer);
     ActIV.Write(writer);
     ActV.Write(writer);
 }
Esempio n. 2
0
    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);
    }