本文整理汇总了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);
}
示例2: WriteToStream
public void WriteToStream(Stream stream)
{
BinaryWriter bw = new BinaryWriter(stream);
bw.Write(SamplesPerBlock);
bw.Write(CoefficientsCount);
stream.WriteContent(Coefficients);
}
示例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);
}
示例4: WriteToStream
public virtual void WriteToStream(Stream stream)
{
stream.WriteContent(SectionHeader);
}
示例5: WriteToStream
public void WriteToStream(Stream output)
{
output.WriteContent(Header);
output.WriteContent(MipMapData);
}
示例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);
}
示例7: WriteToStream
public override void WriteToStream(Stream output)
{
base.WriteToStream(output);
output.WriteContent(TextureHeader);
output.WriteContent(Gtex);
}