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

◆ OnStringLength()

void System.Net.Http.HPack.HPackDecoder.OnStringLength ( int length,
State nextState )
inlineprivate

Definition at line 415 of file HPackDecoder.cs.

416 {
417 if (length > _stringOctets.Length)
418 {
420 {
421 throw new HPackDecodingException(System.SR.Format(System.SR.net_http_headers_exceeded_length, _maxHeadersLength));
422 }
423 _stringOctets = new byte[Math.Max(length, _stringOctets.Length * 2)];
424 }
426 _stringIndex = 0;
427 _state = nextState;
428 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_http_headers_exceeded_length
Definition SR.cs:178
Definition SR.cs:7

References System.Net.Http.HPack.HPackDecoder._maxHeadersLength, System.Net.Http.HPack.HPackDecoder._state, System.Net.Http.HPack.HPackDecoder._stringIndex, System.Net.Http.HPack.HPackDecoder._stringLength, System.Net.Http.HPack.HPackDecoder._stringOctets, System.SR.Format(), System.length, System.Math.Max(), and System.SR.net_http_headers_exceeded_length.

Referenced by System.Net.Http.HPack.HPackDecoder.ParseHeaderNameLength(), System.Net.Http.HPack.HPackDecoder.ParseHeaderNameLengthContinue(), System.Net.Http.HPack.HPackDecoder.ParseHeaderValueLength(), and System.Net.Http.HPack.HPackDecoder.ParseHeaderValueLengthContinue().