public void Serialize(Stream output, Endian endian, IStringTable stringTable)
 {
     output.WriteValueU32(stringTable.Put(this.Name));
     output.WriteValueU32(this.Size, endian);
     output.WriteValueU32(this.Flags, endian);
     output.WriteValueU32(this.Unknown0C, endian);
 }
        public void Serialize(Stream output, Endian endian, IStringTable stringTable)
        {
            output.WriteValueU32(stringTable.Put(this.Name), endian);
            output.WriteValueS32(this.Files.Count, endian);
            output.WriteValueS32(this.Directories.Count, endian);
            output.WriteValueS32(0, endian);

            foreach (var dir in this.Directories)
            {
                dir.Serialize(output, endian, stringTable);
            }

            foreach (var file in this.Files)
            {
                file.Serialize(output, endian, stringTable);
            }
        }