ModernUO/Projects/Server.Tests/Network/Packets/PacketTestUtilities.cs
2020-08-27 18:30:38 -07:00

13 lines
357 B
C#

using System;
using System.Runtime.CompilerServices;
using Server.Network;
namespace Server.Tests.Network.Packets
{
public static class PacketTestUtilities
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Span<byte> Compile(this Packet p) =>
p.Compile(false, out var length).AsSpan(0, length);
}
}