예제 #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.WriteBoolean(writer, Value);
 }
예제 #4
0
 /// <summary>
 /// Writes parameter to the binary stream
 /// </summary>
 /// <param name="writer"></param>
 public virtual void Write(BinaryWriter writer)
 {
     ServerBinaryWriter.WriteTinyString(writer, Name);
     ServerBinaryWriter.WriteInt32(writer, ValueType.GUID.GetHashCode());
 }
예제 #5
0
 /// <summary>
 /// Writes to the binary stream
 /// </summary>
 /// <param name="writer"></param>
 public override void Write(BinaryWriter writer)
 {
     base.Write(writer);
     ServerBinaryWriter.WriteUInt16(writer, Value);
 }
예제 #6
0
 /// <summary>
 /// Reads from the given binary stream
 /// </summary>
 /// <param name="writer"></param>
 public override void Write(BinaryWriter writer)
 {
     base.Write(writer);
     ServerBinaryWriter.WriteDateTime(writer, Value);
 }
예제 #7
0
 /// <summary>
 /// Writes this command to the given binary stream
 /// </summary>
 /// <param name="writer"></param>
 public void Write(BinaryWriter writer)
 {
     ServerBinaryWriter.WriteTinyString(writer, Name);
     Parameters.Write(writer);
 }
예제 #8
0
 /// <summary>
 /// Writes to the given binary stream
 /// </summary>
 /// <param name="writer"></param>
 public override void Write(BinaryWriter writer)
 {
     base.Write(writer);
     ServerBinaryWriter.WriteByteArray(writer, Value);
 }
예제 #9
0
 /// <summary>
 /// Writes to binary stream
 /// </summary>
 /// <param name="writer"></param>
 public void Write(BinaryWriter writer)
 {
     ServerBinaryWriter.WriteBoolean(writer, Okey);
     ServerBinaryWriter.WriteShortString(writer, Message);
     Parameters.Write(writer);
 }