本文整理汇总了C#中System.IO.BinaryWriter.WriteUtf8String方法的典型用法代码示例。如果您正苦于以下问题:C# BinaryWriter.WriteUtf8String方法的具体用法?C# BinaryWriter.WriteUtf8String怎么用?C# BinaryWriter.WriteUtf8String使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.BinaryWriter
的用法示例。
在下文中一共展示了BinaryWriter.WriteUtf8String方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
header.Serialize(bw);
bw.WriteUtf8String(ns);
bw.Write(id);
bw.Write(type);
bw.Write(action);
pose.Serialize(bw);
scale.Serialize(bw);
color.Serialize(bw);
bw.WriteTimeSpan(lifetime);
bw.Write(frame_locked);
bw.Write(points.Count); for(int i=0; i<points.Count; i++) { points[i].Serialize(bw);}
bw.Write(colors.Count); for(int i=0; i<colors.Count; i++) { colors[i].Serialize(bw);}
bw.WriteUtf8String(text);
bw.WriteUtf8String(mesh_resource);
bw.Write(mesh_use_embedded_materials);
}
示例2: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
bw.Write(seq);
bw.WriteDateTime(stamp);
bw.WriteUtf8String(frame_id);
}
示例3: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
header.Serialize(bw);
bw.WriteUtf8String(child_frame_id);
transform.Serialize(bw);
}
示例4: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
header.Serialize(bw);
bw.Write(level);
bw.WriteUtf8String(name);
bw.WriteUtf8String(msg);
bw.WriteUtf8String(file);
bw.WriteUtf8String(function);
bw.Write(line);
bw.Write(topics.Count); for(int i=0; i<topics.Count; i++) { bw.WriteUtf8String(topics[i]);}
}
示例5: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
bw.WriteUtf8String(label);
bw.Write(size);
bw.Write(stride);
}
示例6: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
bw.WriteUtf8String(data);
}
示例7: Serialize
///<exclude/>
public void Serialize(BinaryWriter bw)
{
bw.WriteUtf8String(name);
bw.WriteUtf8String(level);
}