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.WriteByte(writer, Value); }