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

◆ ParseHeaderValue()

void System.Net.Http.HPack.HPackDecoder.ParseHeaderValue ( ReadOnlySpan< byte > data,
ref int currentIndex,
IHttpHeadersHandler handler )
inlineprivate

Definition at line 321 of file HPackDecoder.cs.

322 {
323 int num = Math.Min(_stringLength - _stringIndex, data.Length - currentIndex);
324 if (num == _stringLength && !_huffman)
325 {
326 _headerValueRange = (currentIndex, num);
327 currentIndex += num;
328 _state = State.Ready;
329 ProcessHeaderValue(data, handler);
330 return;
331 }
332 data.Slice(currentIndex, num).CopyTo(_stringOctets.AsSpan(_stringIndex));
333 _stringIndex += num;
334 currentIndex += num;
336 {
337 OnString(State.Ready);
338 ProcessHeaderValue(data, handler);
339 }
340 }
void ProcessHeaderValue(ReadOnlySpan< byte > data, IHttpHeadersHandler handler)
ReadOnlySpan< T > Slice(int start)

References System.Net.Http.HPack.HPackDecoder._headerValueRange, System.Net.Http.HPack.HPackDecoder._huffman, 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.ReadOnlySpan< T >.Length, System.Math.Min(), System.Net.Http.HPack.HPackDecoder.OnString(), System.Net.Http.HPack.HPackDecoder.ProcessHeaderValue(), and System.ReadOnlySpan< T >.Slice().

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