fix(content): Converts mahjong packets (#402)
- [X] Converts mahjong packets
This commit is contained in:
parent
f4dd7c8e7f
commit
ca196e4729
7 changed files with 436 additions and 51 deletions
|
|
@ -24,7 +24,7 @@ namespace Server.Network
|
|||
public static class PacketUtilities
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void WritePacketLength(this CircularBufferWriter writer)
|
||||
public static void WritePacketLength(this ref CircularBufferWriter writer)
|
||||
{
|
||||
var length = writer.Position;
|
||||
writer.Seek(1, SeekOrigin.Begin);
|
||||
|
|
@ -33,7 +33,7 @@ namespace Server.Network
|
|||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void WritePacketLength(this SpanWriter writer)
|
||||
public static void WritePacketLength(this ref SpanWriter writer)
|
||||
{
|
||||
writer.Seek(1, SeekOrigin.Begin);
|
||||
writer.Write((ushort)writer.BytesWritten);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue