本文整理汇总了C#中Stream.write方法的典型用法代码示例。如果您正苦于以下问题:C# Stream.write方法的具体用法?C# Stream.write怎么用?C# Stream.write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Stream
的用法示例。
在下文中一共展示了Stream.write方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(inverseRotation);
stream.write(fixedDeltaTime);
stream.write(time);
stream.write(celestialBodies.Count);
foreach(var body in celestialBodies)
body.serialize(stream);
}
示例2: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(guiUpdateRate);
stream.write(stateUpdateRate);
stream.write(showGui);
stream.write(updateGui);
stream.write(updateWindows);
stream.write(updateState);
stream.write(control);
}
示例3: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(throttle);
stream.write(yaw);
stream.write(pitch);
stream.write(roll);
stream.write(dx);
stream.write(dy);
stream.write(dz);
}
示例4: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(width);
stream.write(height);
}
示例5: doSerialize
protected override void doSerialize(Stream stream)
{
base.doSerialize(stream);
stream.write(isVertical);
_views.serialize(stream);
}
示例6: serializeState
public void serializeState(Stream stream)
{
stream.write(_childs.Count);
foreach(View view in _childs)
view.serializeState(stream);
}
示例7: doSerialize
protected override void doSerialize(Stream stream)
{
base.doSerialize(stream);
stream.write(text);
stream.write(maxLength);
}
示例8: doSerializeState
protected override void doSerializeState(Stream stream)
{
if(_updated)
{
_updated = false;
stream.write(toggled);
}
else
stream.writeNull();
}
示例9: doSerializeState
protected override void doSerializeState(Stream stream)
{
_state.serialize(stream);
stream.write(_clicked);
}
示例10: serializeState
private void serializeState(Stream stream, ButtonState state)
{
if(state == ButtonState.NONE)
stream.writeNull();
else
stream.write(stateString(state));
}
示例11: doSerializeState
protected override void doSerializeState(Stream stream)
{
if(_isUpdated)
{
_isUpdated = false;
stream.write(value);
}
else
stream.writeNull();
}
示例12: doSerialize
protected override void doSerialize(Stream stream)
{
base.doSerialize(stream);
stream.write(minValue);
stream.write(maxValue);
stream.write(value);
stream.write(isHorizontal);
serializeStyle(thumbStyle, stream);
}
示例13: doSerialize
protected override void doSerialize(Stream stream)
{
stream.write(a);
stream.write(r);
stream.write(g);
stream.write(b);
}
示例14: write
/// <summary>
/// Writes content to a file
/// (mode can be 'w' for write, 'a' for append or 'wb' for binary write).
/// </summary>
/// <param name="path"></param>
/// <param name="content"></param>
/// <param name="mode"></param>
public void write(string path, string content, string mode)
{
Stream stream = new Stream(path, mode);
stream.write(content);
stream.close();
}
示例15: doSerialize
protected override void doSerialize(Stream stream)
{
base.doSerialize(stream);
stream.write(id);
stream.write(title);
area.serialize(stream);
stream.write(draggable);
_views.serialize(stream);
}