public override void Write(PkgBinaryWriter writer) { PkgValue._offset = 0; UpdateOffsets(); writer.Write("!pkg", 4); writer.Write(name, 4); Elements[0].Write(writer); Elements[1].Write(writer); Elements[0].WriteComplexValue(writer); Elements[1].WriteComplexValue(writer); }
public override void Write(PkgBinaryWriter writer) { writer.Write(ChunkType, 4); writer.Write((UInt32)Elements.Count); foreach (T val in Elements) { val.Write(writer); } foreach (T val in Elements) { val.WriteComplexValue(writer); } }
public override void Write(PkgBinaryWriter writer) { writer.Write(ChunkType, 4); var elemVerData = new PkgOffsetType() { Offset = Elements.Count, Type = Version }; writer.Write(elemVerData); foreach (var val in Elements) { val.Write(writer); } foreach (var val in Elements) { val.WriteComplexValue(writer); } }
public override void Write(PkgBinaryWriter writer) { writer.Write(NameOffsetType); base.Write(writer); writer.Write(Unknown); }
public override void Write(PkgBinaryWriter writer) { writer.Write(valueOffsetType); }
public abstract void Write(PkgBinaryWriter writer);
public override void Write(PkgBinaryWriter writer) { writer.Write(ChunkType, 4); writer.Write(reference, 8); }
public void WritePkg(Stream stream) { using var writer = new PkgBinaryWriter(stream); rootItem.Write(writer); }
public override void Write(PkgBinaryWriter writer) { writer.Write(nameOffsetType); base.Write(writer); }