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