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

◆ OnStringLength()

void System.Net.Http.QPack.QPackDecoder.OnStringLength ( int length,
State nextState )
inlineprivate

Definition at line 311 of file QPackDecoder.cs.

312 {
313 if (length > _stringOctets.Length)
314 {
316 {
317 throw new QPackDecodingException(System.SR.Format(System.SR.net_http_headers_exceeded_length, _maxHeadersLength));
318 }
320 }
322 _stringIndex = 0;
323 _state = nextState;
324 }
static void ReturnAndGetNewPooledArray(ref byte[] buffer, int newSize)
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.QPack.QPackDecoder._maxHeadersLength, System.Net.Http.QPack.QPackDecoder._state, System.Net.Http.QPack.QPackDecoder._stringIndex, System.Net.Http.QPack.QPackDecoder._stringLength, System.Net.Http.QPack.QPackDecoder._stringOctets, System.SR.Format(), System.length, System.SR.net_http_headers_exceeded_length, and System.Net.Http.QPack.QPackDecoder.ReturnAndGetNewPooledArray().

Referenced by System.Net.Http.QPack.QPackDecoder.OnByte().