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

◆ GetStoreValuesIntoStringArray()

static int System.Net.Http.Headers.HttpHeaders.GetStoreValuesIntoStringArray ( HeaderDescriptor descriptor,
object sourceValues,
[NotNull] ref string[] values )
inlinestaticpackageinherited

Definition at line 945 of file HttpHeaders.cs.

946 {
947 if (values == null)
948 {
949 values = Array.Empty<string>();
950 }
951 if (!(sourceValues is HeaderStoreItemInfo headerStoreItemInfo))
952 {
953 if (values.Length == 0)
954 {
955 values = new string[1];
956 }
958 return 1;
959 }
961 if (valueCount > 0)
962 {
963 if (values.Length < valueCount)
964 {
965 values = new string[valueCount];
966 }
967 int currentIndex = 0;
968 ReadStoreValues<string>(values, headerStoreItemInfo.RawValue, null, ref currentIndex);
969 ReadStoreValues<object>(values, headerStoreItemInfo.ParsedValue, descriptor.Parser, ref currentIndex);
970 ReadStoreValues<string>(values, headerStoreItemInfo.InvalidValue, null, ref currentIndex);
971 }
972 return valueCount;
973 }
static int GetValueCount(HeaderStoreItemInfo info)

References System.Net.Http.Headers.HttpHeaders.GetValueCount(), System.Net.Http.Headers.HeaderDescriptor.Parser, and System.values.

Referenced by System.Net.Http.Http3RequestStream.BufferHeaderCollection(), System.Net.Http.Http2Connection.WriteHeaderCollection(), and System.Net.Http.HttpConnection.WriteHeadersAsync().