本文整理汇总了C#中System.Stream.write方法的典型用法代码示例。如果您正苦于以下问题:C# Stream.write方法的具体用法?C# Stream.write怎么用?C# Stream.write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Stream
的用法示例。
在下文中一共展示了Stream.write方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: doSerialize
protected override void doSerialize(Stream stream)
{
centerOfMass.serialize(stream);
stream.write(mass);
torque.serialize(stream);
momentumOfInertia.serialize(stream);
angularMomentum.serialize(stream);
}
示例2: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(x);
stream.write(y);
stream.write(z);
}
示例3: doSerialize
protected override void doSerialize(Stream stream)
{
if(alignment != Alignment.Default)
stream.write(alignment.ToString());
else
stream.writeNull();
if(style != FontStyle.Default)
stream.write(style.ToString());
else
stream.writeNull();
if(normal != null)
normal.serialize(stream);
else
stream.writeNull();
if(onNormal != null)
onNormal.serialize(stream);
else
stream.writeNull();
if(hover != null)
hover.serialize(stream);
else
stream.writeNull();
if(onHover != null)
onHover.serialize(stream);
else
stream.writeNull();
if(focused != null)
focused.serialize(stream);
else
stream.writeNull();
if(onFocused != null)
onFocused.serialize(stream);
else
stream.writeNull();
if(active != null)
active.serialize(stream);
else
stream.writeNull();
if(onActive != null)
onActive.serialize(stream);
else
stream.writeNull();
}
示例4: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(trueAnomaly);
stream.write(eccentricity);
stream.write(parameter);
stream.write(inclination);
stream.write(LAN);
stream.write(argumentOfPeriapsis);
stream.write(timeAtPeriapsis);
mainBody.serialize(stream);
}