当前位置: 首页>>代码示例>>C#>>正文


C# Stream.WriteContent方法代码示例

本文整理汇总了C#中System.IO.Stream.WriteContent方法的典型用法代码示例。如果您正苦于以下问题:C# Stream.WriteContent方法的具体用法?C# Stream.WriteContent怎么用?C# Stream.WriteContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.IO.Stream的用法示例。


在下文中一共展示了Stream.WriteContent方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WriteToStream

 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);
 }
开发者ID:kidaa,项目名称:Pulse,代码行数:8,代码来源:YkdFile.cs

示例2: WriteToStream

 public void WriteToStream(Stream stream)
 {
     BinaryWriter bw = new BinaryWriter(stream);
     bw.Write(SamplesPerBlock);
     bw.Write(CoefficientsCount);
     stream.WriteContent(Coefficients);
 }
开发者ID:kidaa,项目名称:Pulse,代码行数:7,代码来源:AdPcmWaveExtraData.cs

示例3: WriteToStream

 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);
 }
开发者ID:truongan012,项目名称:Pulse,代码行数:9,代码来源:YkdBlockOptionalTails.cs

示例4: WriteToStream

 public virtual void WriteToStream(Stream stream)
 {
     stream.WriteContent(SectionHeader);
 }
开发者ID:kidaa,项目名称:Pulse,代码行数:4,代码来源:SectionBase.cs

示例5: WriteToStream

 public void WriteToStream(Stream output)
 {
     output.WriteContent(Header);
     output.WriteContent(MipMapData);
 }
开发者ID:akimoto-akira,项目名称:Pulse,代码行数:5,代码来源:GtexData.cs

示例6: WriteToStream

        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);
        }
开发者ID:kidaa,项目名称:Pulse,代码行数:21,代码来源:YkdFrames.cs

示例7: WriteToStream

 public override void WriteToStream(Stream output)
 {
     base.WriteToStream(output);
     output.WriteContent(TextureHeader);
     output.WriteContent(Gtex);
 }
开发者ID:kidaa,项目名称:Pulse,代码行数:6,代码来源:TextureSection.cs


注:本文中的System.IO.Stream.WriteContent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。