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);
            }
        }
Exemple #4
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(NameOffsetType);
     base.Write(writer);
     writer.Write(Unknown);
 }
Exemple #5
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(valueOffsetType);
 }
Exemple #6
0
 public abstract void Write(PkgBinaryWriter writer);
Exemple #7
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(ChunkType, 4);
     writer.Write(reference, 8);
 }
Exemple #8
0
 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);
 }