Updates Pipe & Makes NetState more testable (#288)

Updates pipe eliminate result and segments from being allocated.

Bumps release version
This commit is contained in:
Kamron Batman 2020-10-25 17:40:08 -07:00 committed by GitHub
parent 293e691539
commit 990e6fe188
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 219 additions and 198 deletions

View file

@ -61,12 +61,12 @@ namespace Server.Network
0x4, 0x00D
};
public static void Compress(CircularBuffer<byte> buffer, ref int length)
public static void Compress(ref CircularBuffer<byte> buffer, ref int length)
{
length = Compress(buffer, length, buffer);
length = Compress(ref buffer, length, ref buffer);
}
public static int Compress(CircularBuffer<byte> input, int inputLength, CircularBuffer<byte> output)
public static int Compress(ref CircularBuffer<byte> input, int inputLength, ref CircularBuffer<byte> output)
{
if (inputLength > DefiniteOverflow)
{