本文整理汇总了C#中IValueWriter.WriteByte方法的典型用法代码示例。如果您正苦于以下问题:C# IValueWriter.WriteByte方法的具体用法?C# IValueWriter.WriteByte怎么用?C# IValueWriter.WriteByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IValueWriter
的用法示例。
在下文中一共展示了IValueWriter.WriteByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WritePayload
public override void WritePayload(IValueWriter writerm)
{
writerm.WriteUInt32(this.NetworkID);
writerm.WriteString(this.CharacterName);
writerm.WriteByte((byte)this.Action);
}
示例2: WritePayload
public override void WritePayload (ISerializationContext context, IValueWriter writer)
{
writer.WriteInt32 (GroupId);
writer.WriteByte ((byte)Response);
}
示例3: Serialize
public void Serialize(ISerializationContext context, IValueWriter writer)
{
writer.WriteString (Name);
writer.WriteString (Description);
writer.WriteString (Logo);
writer.WriteBool (Passworded);
writer.WriteByte ((byte)RegistrationMode);
if (RegistrationMode != UserRegistrationMode.None)
writer.WriteString (RegistrationContent);
}
示例4: WritePayload
public override void WritePayload(IValueWriter writer)
{
writer.WriteByte ((byte)this.Reason);
}
示例5: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteString (Nickname);
writer.WriteByte ((byte)NewState);
}
示例6: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteByte ((byte) Result);
writer.WriteBool (KeyboardEncryption);
writer.WriteBool (MouseEncryption);
}
示例7: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteByte ((byte)Reason);
if (Reason == ConnectionResult.Custom)
writer.WriteString (CustomReason);
}
示例8: Serialize
public void Serialize(ISerializationContext context, IValueWriter writer)
{
writer.WriteInt32 (UserId);
writer.WriteString (Username);
writer.WriteInt32 (CurrentChannelId);
writer.WriteString (Nickname);
writer.WriteString (Phonetic);
writer.WriteBool (IsMuted);
writer.WriteByte ((byte)Status);
writer.WriteString (Comment);
}
示例9: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteInt32 (SourceId);
writer.WriteInt32 (Sequence);
writer.WriteByte ((byte)Data.Length);
for (int i = 0; i < Data.Length; ++i)
writer.WriteBytes (Data[i]);
}
示例10: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteUInt16 (OriginalMessageId);
writer.WriteByte (Count);
writer.WriteBytes (Payload, this.offset, this.length);
}
示例11: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteString (this.SourceName);
writer.WriteByte ((byte)this.SourceResult);
if (this.Source != null)
this.Source.Serialize (context, writer);
}
示例12: Serialize
public void Serialize(ISerializationContext context, IValueWriter writer)
{
writer.WriteInt32 (this.UserId);
writer.WriteByte ((byte)this.ResultState);
}
示例13: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteByte ((byte)this.Result);
this.MoveInfo.Serialize (context, writer);
}
示例14: WritePayload
public override void WritePayload (ISerializationContext context, IValueWriter writer)
{
writer.WriteByte ((byte)ChangeAction);
if (ChangeAction != NotifyCollectionChangedAction.Reset)
writer.WriteEnumerable (context, People);
}
示例15: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteByte ((byte)Result);
}