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


C# IValueWriter.WriteBool方法代码示例

本文整理汇总了C#中IValueWriter.WriteBool方法的典型用法代码示例。如果您正苦于以下问题:C# IValueWriter.WriteBool方法的具体用法?C# IValueWriter.WriteBool怎么用?C# IValueWriter.WriteBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IValueWriter的用法示例。


在下文中一共展示了IValueWriter.WriteBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WritePayload

		public override void WritePayload (ISerializationContext context, IValueWriter writer)
		{
			if (writer.WriteBool (SenderId != null))
				writer.WriteString (SenderId);

			writer.WriteInt32 (GroupId);
			writer.WriteString (Text);
		}
开发者ID:ermau,项目名称:Tempest.Social,代码行数:8,代码来源:TextMessage.cs

示例2: Serialize

        public void Serialize(IValueWriter writer)
        {
            writer.WriteBool (this.NonCharacter);
            writer.WriteInt32 (this.PlayerID);

            writer.WriteInt32 (this.path.Count);
            foreach(Directions dir in this.path)
                writer.WriteInt32 ((int) dir);
        }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:9,代码来源:ApplyMovementCommand.cs

示例3: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     this.channel.Serialize (context, writer);
     writer.WriteBool (Delete);
     writer.WriteBool (MakeDefault);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:6,代码来源:ChannelEditMessage.cs

示例4: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteBool (this.IsActive);
 }
开发者ID:HaKDMoDz,项目名称:Alloy,代码行数:4,代码来源:MachineStateMessage.cs

示例5: WritePayload

        public override void WritePayload(ISerializationContext context, IValueWriter writer)
        {
            if (writer.WriteBool (SignatureHashAlgorithms != null))
            {
                string[] algs = SignatureHashAlgorithms.ToArray();
                writer.WriteInt32 (algs.Length);
                for (int i = 0; i < algs.Length; ++i)
                    writer.WriteString (algs[i]);
            }

            Protocol[] protocols = Protocols.ToArray();
            writer.WriteInt32 (protocols.Length);
            for (int i = 0 ; i < protocols.Length; ++i)
                protocols[i].Serialize (context, writer);
        }
开发者ID:ermau,项目名称:Tempest,代码行数:15,代码来源:ConnectMessage.cs

示例6: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteBool (Removing);
     BanInfo.Serialize (context, writer);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:5,代码来源:BanUserMessage.cs

示例7: Serialize

        public void Serialize(IValueWriter writer, IPublicKeyCrypto crypto)
        {
            if (writer.WriteBool (D != null))
            {
                writer.WriteBytes (crypto.Encrypt (D));
                writer.WriteBytes (crypto.Encrypt (DP));
                writer.WriteBytes (crypto.Encrypt (DQ));
                writer.WriteBytes (crypto.Encrypt (InverseQ));
                writer.WriteBytes (crypto.Encrypt (P));
                writer.WriteBytes (crypto.Encrypt (Q));
            }

            if (writer.WriteBool (this.publicKey != null))
            {
                writer.WriteBytes (crypto.Encrypt (Exponent));

                int first = Modulus.Length / 2;
                writer.WriteBytes (crypto.Encrypt (Modulus.Copy (0, first)));
                writer.WriteBytes (crypto.Encrypt (Modulus.Copy (first, Modulus.Length - first)));
            }
        }
开发者ID:strager,项目名称:Tempest,代码行数:21,代码来源:RSAAsymmetricKey.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: Serialize

 public void Serialize(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteInt32 (this.ChannelId);
     writer.WriteInt32 (this.ParentChannelId);
     writer.WriteBool (this.ReadOnly);
     writer.WriteInt32 (this.UserLimit);
     writer.WriteString (this.Name);
     writer.WriteString (this.Description);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:9,代码来源:ChannelInfo.cs

示例10: Serialize

        public void Serialize(IValueWriter writer, RSACrypto crypto)
        {
            if (!writer.WriteBool (this.publicKey != null))
                return;

            writer.WriteBytes (crypto.Encrypt (this.Exponent));

            int first = this.Modulus.Length / 2;
            writer.WriteBytes (crypto.Encrypt (this.Modulus.Copy (0, first)));
            writer.WriteBytes (crypto.Encrypt (this.Modulus.Copy (first, this.Modulus.Length - first)));
        }
开发者ID:morpheusllc,项目名称:Tempest,代码行数:11,代码来源:RSAAsymmetricKey.cs

示例11: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteInt32 (UserId);
     writer.WriteString (Username);
     writer.WriteBool (Approved);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:6,代码来源:RegistrationApprovalMessage.cs

示例12: WritePayload

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

示例13: Serialize

        public void Serialize(ISerializationContext context, IValueWriter writer, IAsymmetricCrypto crypto)
        {
            if (!writer.WriteBool (this.publicKey != null))
                return;

            writer.WriteBytes (crypto.Encrypt (Exponent));

            int first = this.Modulus.Length / 2;
            writer.WriteBytes (crypto.Encrypt (Modulus.Copy (0, first)));
            writer.WriteBytes (crypto.Encrypt (Modulus.Copy (first, Modulus.Length - first)));
        }
开发者ID:ermau,项目名称:Tempest,代码行数:11,代码来源:RSAAsymmetricKey.cs

示例14: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteBool (FromServer);
     writer.WriteInt32 (UserId);
 }
开发者ID:ermau,项目名称:Gablarski,代码行数:5,代码来源:UserKickedMessage.cs

示例15: 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


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