当前位置: 首页>>代码示例>>C#>>正文


C# IValueWriter.WriteByte方法代码示例

本文整理汇总了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);
        }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:7,代码来源:PlayerUpdateMessage.cs

示例2: WritePayload

		public override void WritePayload (ISerializationContext context, IValueWriter writer)
		{
			writer.WriteInt32 (GroupId);
			writer.WriteByte ((byte)Response);
		}
开发者ID:ermau,项目名称:Tempest.Social,代码行数:5,代码来源:GroupInviteResponseMessage.cs

示例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);
        }
开发者ID:ermau,项目名称:Gablarski,代码行数:11,代码来源:ServerInfo.cs

示例4: WritePayload

 public override void WritePayload(IValueWriter writer)
 {
     writer.WriteByte ((byte)this.Reason);
 }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:4,代码来源:LoginFailedMessage.cs

示例5: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteString (Nickname);
     writer.WriteByte ((byte)NewState);
 }
开发者ID:strager,项目名称:Tempest,代码行数:5,代码来源:UserStateChangedMessage.cs

示例6: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteByte ((byte) Result);
     writer.WriteBool (KeyboardEncryption);
     writer.WriteBool (MouseEncryption);
 }
开发者ID:HaKDMoDz,项目名称:Alloy,代码行数:6,代码来源:ConnectResultMessage.cs

示例7: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteByte ((byte)Reason);
     if (Reason == ConnectionResult.Custom)
         writer.WriteString (CustomReason);
 }
开发者ID:ermau,项目名称:Tempest,代码行数:6,代码来源:DisconnectMessage.cs

示例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);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:11,代码来源:UserInfo.cs

示例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]);
        }
开发者ID:ermau,项目名称:Gablarski,代码行数:9,代码来源:ServerAudioDataMessage.cs

示例10: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteUInt16 (OriginalMessageId);
     writer.WriteByte (Count);
     writer.WriteBytes (Payload, this.offset, this.length);
 }
开发者ID:ermau,项目名称:Tempest,代码行数:6,代码来源:PartialMessage.cs

示例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);
        }
开发者ID:ermau,项目名称:Gablarski,代码行数:8,代码来源:SourceResultMessage.cs

示例12: Serialize

 public void Serialize(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteInt32 (this.UserId);
     writer.WriteByte ((byte)this.ResultState);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:5,代码来源:LoginResult.cs

示例13: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteByte ((byte)this.Result);
     this.MoveInfo.Serialize (context, writer);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:5,代码来源:ChannelChangeResultMessage.cs

示例14: WritePayload

		public override void WritePayload (ISerializationContext context, IValueWriter writer)
		{
			writer.WriteByte ((byte)ChangeAction);
			if (ChangeAction != NotifyCollectionChangedAction.Reset)
				writer.WriteEnumerable (context, People);
		}
开发者ID:ermau,项目名称:Tempest.Social,代码行数:6,代码来源:BuddyListMessage.cs

示例15: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteByte ((byte)Result);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:4,代码来源:RegisterResultMessage.cs


注:本文中的IValueWriter.WriteByte方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。