ModernUO/Projects/Server.Tests/Network/Packets/PacketTestUtilities.cs
2020-10-24 19:10:53 -07:00

13 lines
349 B
C#

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