Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(NameOffsetType);
     base.Write(writer);
     writer.Write(Unknown);
 }
Esempio n. 5
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(valueOffsetType);
 }
Esempio n. 6
0
 public abstract void Write(PkgBinaryWriter writer);
Esempio n. 7
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(ChunkType, 4);
     writer.Write(reference, 8);
 }
Esempio n. 8
0
 public void WritePkg(Stream stream)
 {
     using var writer = new PkgBinaryWriter(stream);
     rootItem.Write(writer);
 }
Esempio n. 9
0
 public override void Write(PkgBinaryWriter writer)
 {
     writer.Write(nameOffsetType);
     base.Write(writer);
 }