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