Ejemplo n.º 1
0
        public void Write(BigBinaryWriter writer)
        {
            writer.Write(this.FileName);
            writer.Write((UInt64)0);

            writer.Write(this._offset);
            writer.Write(this.Size);
            writer.Write((UInt32)0);
            writer.Write(this.TimeStamp);

            writer.Write(this.Type);
            writer.Write(this.Type2);
        }
Ejemplo n.º 2
0
        public void Write(Stream stream)
        {
            using (BigBinaryWriter writer = new BigBinaryWriter(EndianBitConverter.Little, stream))
            {
                writer.Write(this._version);
                writer.Write(this._unknown);
                writer.Write("WAR-BUILDER");

                writer.Write(this.Dependencies.Count);
                if (this.Dependencies.Count > 0)
                {
                    int depCap = 4;
                    while (depCap < this.Dependencies.Count) depCap *= 2;
                    writer.Write(depCap);
                    writer.Write(this._depFlags);

                    foreach (BigDependency dep in this.Dependencies)
                    {
                        dep.Write(writer);
                    }
                }

                writer.Write(this.Entries.Count);
                if (this.Entries.Count > 0)
                {
                    writer.Write(this.Entries.Count);
                    writer.Write(this._entryFlags);

                    this.UpdateOffsets();
                    foreach (BigEntry entry in this.Entries)
                    {
                        entry.Write(writer);
                    }

                    foreach (BigEntry entry in this.Entries)
                    {
                        writer.Write(entry.CompressedSize);
                        writer.Write(entry.Data);
                    }
                }
            }
        }
Ejemplo n.º 3
0
 public void Export(Stream stream)
 {
     using (BigBinaryWriter writer = new BigBinaryWriter(EndianBitConverter.Little, stream))
     {
         writer.Write(this.GetDataArray(true));
     }
 }
Ejemplo n.º 4
0
 public void Write(BigBinaryWriter writer)
 {
     writer.Write(this.FileName);
     writer.Write(this.Hash);
 }