Ejemplo n.º 1
0
 public void WriteToStream(Stream stream)
 {
     stream.WriteContent(Header);
     stream.WriteContent(Background);
     YkdOffsets.WriteToStream(stream, ref Offsets, ref Blocks, b => b.CalcSize());
     stream.WriteContent(Blocks);
     stream.WriteContent(Resources);
 }
Ejemplo n.º 2
0
 public void WriteToStream(Stream stream)
 {
     BinaryWriter bw = new BinaryWriter(stream);
     bw.Write(SamplesPerBlock);
     bw.Write(CoefficientsCount);
     stream.WriteContent(Coefficients);
 }
Ejemplo n.º 3
0
 public void WriteToStream(Stream stream)
 {
     BinaryWriter bw = new BinaryWriter(stream);
     bw.Write(Count);
     bw.Write(Unknown1);
     bw.Write(Unknown2);
     bw.Write(Unknown3);
     stream.WriteContent(Tails);
 }
Ejemplo n.º 4
0
 public virtual void WriteToStream(Stream stream)
 {
     stream.WriteContent(SectionHeader);
 }
Ejemplo n.º 5
0
 public void WriteToStream(Stream output)
 {
     output.WriteContent(Header);
     output.WriteContent(MipMapData);
 }
Ejemplo n.º 6
0
        public void WriteToStream(Stream stream)
        {
            BinaryWriter bw = new BinaryWriter(stream);

            int count = Count;
            int alignment = ((4 - (count % 4)) % 4);

            bw.Write(Unknown1);
            bw.Write(Unknown2);
            bw.Write(count);
            bw.Write(Unknown3);

            int offset = (int)stream.Position + (count + alignment) * 4;

            for (int i = 0; i < count; i++)
                bw.Write(offset + i * YkdFrame.Size);
            for (int i = 0; i < alignment; i++)
                bw.Write(0);

            stream.WriteContent(Frames);
        }
Ejemplo n.º 7
0
 public override void WriteToStream(Stream output)
 {
     base.WriteToStream(output);
     output.WriteContent(TextureHeader);
     output.WriteContent(Gtex);
 }