public void Write(BinaryWriter writer) { ServerBinaryWriter.WriteByte(writer, (byte)Count); foreach (var entry in this) { entry.Write(writer); } }
/// <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); } }
/// <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); }
/// <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()); }
/// <summary> /// Writes to the binary stream /// </summary> /// <param name="writer"></param> public override void Write(BinaryWriter writer) { base.Write(writer); ServerBinaryWriter.WriteUInt16(writer, Value); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }