Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnsureStringCapacity()

void System.Net.Http.HPack.HPackDecoder.EnsureStringCapacity ( ref byte[] dst)
inlineprivate

Definition at line 461 of file HPackDecoder.cs.

462 {
463 if (dst.Length < _stringLength)
464 {
465 dst = new byte[Math.Max(_stringLength, dst.Length * 2)];
466 }
467 }

References System.Net.Http.HPack.HPackDecoder._stringLength, and System.Math.Max().

Referenced by System.Net.Http.HPack.HPackDecoder.DecodeInternal(), and System.Net.Http.HPack.HPackDecoder.OnString().