示例#1
0
 public void Write(BinaryWriter writer)
 {
     ServerBinaryWriter.WriteByte(writer, (byte)Count);
     foreach (var entry in this)
     {
         entry.Write(writer);
     }
 }
示例#2
0
 /// <summary>
 /// Writes parameter to the binary stream
 /// </summary>
 /// <param name="writer"></param>
 public override void Write(BinaryWriter writer)
 {
     base.Write(writer);
     if (Value == null)
     {
         ServerBinaryWriter.WriteByte(writer, NULL);
     }
     else
     {
         ServerBinaryWriter.WriteByte(writer, (byte)1);
         Value.Write(writer);
     }
 }
示例#3
0
 /// <summary>
 /// Writes parameter to the given binary stream
 /// </summary>
 /// <param name="writer"></param>
 public override void Write(BinaryWriter writer)
 {
     base.Write(writer);
     ServerBinaryWriter.WriteByte(writer, Value);
 }