Inheritance: IDisposable
示例#1
0
 public override void WriteMetaData(RecordWriter writer)
 {
     writer.Write((uint)Length);
     writer.Write(Flags);
     writer.Write(FormId);
     writer.Write(Revision);
     writer.Write(Version);
     writer.Write(Unknown);
 }
示例#2
0
 protected virtual void BeforeWrite(RecordWriter writer)
 {
 }
示例#3
0
 protected virtual void AfterWrite(RecordWriter writer)
 {
 }
示例#4
0
        internal void WriteRecord(RecordWriter writer)
        {
            BeforeWrite(writer);

            var compinfo = InfoProvider.GetCompoundInfo(GetType());
            foreach (var meminfo in compinfo.Members.Values.Distinct().OrderBy(m => m.Order))
            {
                writer.WriteField(this, meminfo);
            }

            AfterWrite(writer);
        }
示例#5
0
 public abstract void WriteMetaData(RecordWriter writer);
示例#6
0
        public override void WriteMetaData(RecordWriter writer)
        {
            writer.Write((uint)Length + 24);

            // Write either FormType or properties union
            if (GroupType == GroupType.Top)
                writer.WriteStringFixedLength(FormKind);
            else
                writer.Write(properties.FormId);

            writer.Write((uint)GroupType);
            writer.Write(Day);
            writer.Write(TotalMonths);
            writer.Write(Unknown1);
            writer.Write(Version);
            writer.Write(Unknown2);
        }
示例#7
0
 public abstract void WriteMetaData(RecordWriter writer);
示例#8
0
 protected virtual void AfterWrite(RecordWriter writer)
 {
 }
示例#9
0
 protected virtual void BeforeWrite(RecordWriter writer)
 {
 }
示例#10
0
 public override void WriteMetaData(RecordWriter writer)
 {
     // TODO: write XXXX segment when current segment length exceeds max ushort
     writer.Write((ushort)Length);
 }