本文整理汇总了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);
}
示例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);
}
示例3: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
this.channel.Serialize (context, writer);
writer.WriteBool (Delete);
writer.WriteBool (MakeDefault);
}
示例4: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteBool (this.IsActive);
}
示例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);
}
示例6: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteBool (Removing);
BanInfo.Serialize (context, writer);
}
示例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)));
}
}
示例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: 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);
}
示例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)));
}
示例11: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteInt32 (UserId);
writer.WriteString (Username);
writer.WriteBool (Approved);
}
示例12: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteBool (this.ServerInfoOnly);
}
示例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)));
}
示例14: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteBool (FromServer);
writer.WriteInt32 (UserId);
}
示例15: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteByte ((byte) Result);
writer.WriteBool (KeyboardEncryption);
writer.WriteBool (MouseEncryption);
}