~ruther/NosSmooth

ref: c3d5b45b65d58084e5511b1089ce9a2d9557ccab NosSmooth/Core/NosSmooth.Packets/Packets/PacketInfo.cs -rw-r--r-- 623 bytes
c3d5b45b — František Boháček feat: use ReadOnlySpan for deserialization instead of strings 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
//  PacketInfo.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using NosSmooth.Packets.Converters;

namespace NosSmooth.Packets.Packets;

/// <summary>
/// Information about a packet type.
/// </summary>
/// <param name="Header">The packet's header, if any.</param>
/// <param name="PacketType">The packet's type.</param>
/// <param name="PacketConverter">The packet's converter.</param>
public record PacketInfo(string? Header, Type PacketType, IStringConverter PacketConverter);