namespace Shared.Packet.Packets; // Packet interface for type safety public interface IPacket { short Size { get; } void Serialize(Span data); void Deserialize(ReadOnlySpan data); }