@@ -7821,301 +7821,299 @@ protected override void CopyToFast(KeyValuePair<string, StringValues>[] array, i
7821
7821
( ( ICollection < KeyValuePair < string , StringValues > > ) MaybeUnknown ) ? . CopyTo ( array , arrayIndex ) ;
7822
7822
}
7823
7823
7824
- protected int CopyToFast ( ref MemoryPoolIterator2 output )
7824
+ protected void CopyToFast ( ref MemoryPoolIterator2 output )
7825
7825
{
7826
- var count = 0 ;
7827
7826
7828
7827
if ( ( ( _bits & 1L ) != 0 ) )
7829
7828
{
7830
7829
foreach ( var value in _CacheControl )
7831
7830
{
7832
- count += output . CopyFrom ( _headerBytes , 0 , 17 ) ;
7833
- count += output . CopyFromAscii ( value ) ;
7831
+ output . CopyFrom ( _headerBytes , 0 , 17 ) ;
7832
+ output . CopyFromAscii ( value ) ;
7834
7833
}
7835
7834
}
7836
7835
7837
7836
if ( ( ( _bits & 2L ) != 0 ) )
7838
7837
{
7839
7838
if ( _rawConnection != null )
7840
7839
{
7841
- count += output . CopyFrom ( _rawConnection , 0 , _rawConnection . Length ) ;
7840
+ output . CopyFrom ( _rawConnection , 0 , _rawConnection . Length ) ;
7842
7841
} else
7843
7842
foreach ( var value in _Connection )
7844
7843
{
7845
- count += output . CopyFrom ( _headerBytes , 17 , 14 ) ;
7846
- count += output . CopyFromAscii ( value ) ;
7844
+ output . CopyFrom ( _headerBytes , 17 , 14 ) ;
7845
+ output . CopyFromAscii ( value ) ;
7847
7846
}
7848
7847
}
7849
7848
7850
7849
if ( ( ( _bits & 4L ) != 0 ) )
7851
7850
{
7852
7851
if ( _rawDate != null )
7853
7852
{
7854
- count += output . CopyFrom ( _rawDate , 0 , _rawDate . Length ) ;
7853
+ output . CopyFrom ( _rawDate , 0 , _rawDate . Length ) ;
7855
7854
} else
7856
7855
foreach ( var value in _Date )
7857
7856
{
7858
- count += output . CopyFrom ( _headerBytes , 31 , 8 ) ;
7859
- count += output . CopyFromAscii ( value ) ;
7857
+ output . CopyFrom ( _headerBytes , 31 , 8 ) ;
7858
+ output . CopyFromAscii ( value ) ;
7860
7859
}
7861
7860
}
7862
7861
7863
7862
if ( ( ( _bits & 8L ) != 0 ) )
7864
7863
{
7865
7864
foreach ( var value in _KeepAlive )
7866
7865
{
7867
- count += output . CopyFrom ( _headerBytes , 39 , 14 ) ;
7868
- count += output . CopyFromAscii ( value ) ;
7866
+ output . CopyFrom ( _headerBytes , 39 , 14 ) ;
7867
+ output . CopyFromAscii ( value ) ;
7869
7868
}
7870
7869
}
7871
7870
7872
7871
if ( ( ( _bits & 16L ) != 0 ) )
7873
7872
{
7874
7873
foreach ( var value in _Pragma )
7875
7874
{
7876
- count += output . CopyFrom ( _headerBytes , 53 , 10 ) ;
7877
- count += output . CopyFromAscii ( value ) ;
7875
+ output . CopyFrom ( _headerBytes , 53 , 10 ) ;
7876
+ output . CopyFromAscii ( value ) ;
7878
7877
}
7879
7878
}
7880
7879
7881
7880
if ( ( ( _bits & 32L ) != 0 ) )
7882
7881
{
7883
7882
foreach ( var value in _Trailer )
7884
7883
{
7885
- count += output . CopyFrom ( _headerBytes , 63 , 11 ) ;
7886
- count += output . CopyFromAscii ( value ) ;
7884
+ output . CopyFrom ( _headerBytes , 63 , 11 ) ;
7885
+ output . CopyFromAscii ( value ) ;
7887
7886
}
7888
7887
}
7889
7888
7890
7889
if ( ( ( _bits & 64L ) != 0 ) )
7891
7890
{
7892
7891
if ( _rawTransferEncoding != null )
7893
7892
{
7894
- count += output . CopyFrom ( _rawTransferEncoding , 0 , _rawTransferEncoding . Length ) ;
7893
+ output . CopyFrom ( _rawTransferEncoding , 0 , _rawTransferEncoding . Length ) ;
7895
7894
} else
7896
7895
foreach ( var value in _TransferEncoding )
7897
7896
{
7898
- count += output . CopyFrom ( _headerBytes , 74 , 21 ) ;
7899
- count += output . CopyFromAscii ( value ) ;
7897
+ output . CopyFrom ( _headerBytes , 74 , 21 ) ;
7898
+ output . CopyFromAscii ( value ) ;
7900
7899
}
7901
7900
}
7902
7901
7903
7902
if ( ( ( _bits & 128L ) != 0 ) )
7904
7903
{
7905
7904
foreach ( var value in _Upgrade )
7906
7905
{
7907
- count += output . CopyFrom ( _headerBytes , 95 , 11 ) ;
7908
- count += output . CopyFromAscii ( value ) ;
7906
+ output . CopyFrom ( _headerBytes , 95 , 11 ) ;
7907
+ output . CopyFromAscii ( value ) ;
7909
7908
}
7910
7909
}
7911
7910
7912
7911
if ( ( ( _bits & 256L ) != 0 ) )
7913
7912
{
7914
7913
foreach ( var value in _Via )
7915
7914
{
7916
- count += output . CopyFrom ( _headerBytes , 106 , 7 ) ;
7917
- count += output . CopyFromAscii ( value ) ;
7915
+ output . CopyFrom ( _headerBytes , 106 , 7 ) ;
7916
+ output . CopyFromAscii ( value ) ;
7918
7917
}
7919
7918
}
7920
7919
7921
7920
if ( ( ( _bits & 512L ) != 0 ) )
7922
7921
{
7923
7922
foreach ( var value in _Warning )
7924
7923
{
7925
- count += output . CopyFrom ( _headerBytes , 113 , 11 ) ;
7926
- count += output . CopyFromAscii ( value ) ;
7924
+ output . CopyFrom ( _headerBytes , 113 , 11 ) ;
7925
+ output . CopyFromAscii ( value ) ;
7927
7926
}
7928
7927
}
7929
7928
7930
7929
if ( ( ( _bits & 1024L ) != 0 ) )
7931
7930
{
7932
7931
foreach ( var value in _Allow )
7933
7932
{
7934
- count += output . CopyFrom ( _headerBytes , 124 , 9 ) ;
7935
- count += output . CopyFromAscii ( value ) ;
7933
+ output . CopyFrom ( _headerBytes , 124 , 9 ) ;
7934
+ output . CopyFromAscii ( value ) ;
7936
7935
}
7937
7936
}
7938
7937
7939
7938
if ( ( ( _bits & 2048L ) != 0 ) )
7940
7939
{
7941
7940
if ( _rawContentLength != null )
7942
7941
{
7943
- count += output . CopyFrom ( _rawContentLength , 0 , _rawContentLength . Length ) ;
7942
+ output . CopyFrom ( _rawContentLength , 0 , _rawContentLength . Length ) ;
7944
7943
} else
7945
7944
foreach ( var value in _ContentLength )
7946
7945
{
7947
- count += output . CopyFrom ( _headerBytes , 133 , 18 ) ;
7948
- count += output . CopyFromAscii ( value ) ;
7946
+ output . CopyFrom ( _headerBytes , 133 , 18 ) ;
7947
+ output . CopyFromAscii ( value ) ;
7949
7948
}
7950
7949
}
7951
7950
7952
7951
if ( ( ( _bits & 4096L ) != 0 ) )
7953
7952
{
7954
7953
foreach ( var value in _ContentType )
7955
7954
{
7956
- count += output . CopyFrom ( _headerBytes , 151 , 16 ) ;
7957
- count += output . CopyFromAscii ( value ) ;
7955
+ output . CopyFrom ( _headerBytes , 151 , 16 ) ;
7956
+ output . CopyFromAscii ( value ) ;
7958
7957
}
7959
7958
}
7960
7959
7961
7960
if ( ( ( _bits & 8192L ) != 0 ) )
7962
7961
{
7963
7962
foreach ( var value in _ContentEncoding )
7964
7963
{
7965
- count += output . CopyFrom ( _headerBytes , 167 , 20 ) ;
7966
- count += output . CopyFromAscii ( value ) ;
7964
+ output . CopyFrom ( _headerBytes , 167 , 20 ) ;
7965
+ output . CopyFromAscii ( value ) ;
7967
7966
}
7968
7967
}
7969
7968
7970
7969
if ( ( ( _bits & 16384L ) != 0 ) )
7971
7970
{
7972
7971
foreach ( var value in _ContentLanguage )
7973
7972
{
7974
- count += output . CopyFrom ( _headerBytes , 187 , 20 ) ;
7975
- count += output . CopyFromAscii ( value ) ;
7973
+ output . CopyFrom ( _headerBytes , 187 , 20 ) ;
7974
+ output . CopyFromAscii ( value ) ;
7976
7975
}
7977
7976
}
7978
7977
7979
7978
if ( ( ( _bits & 32768L ) != 0 ) )
7980
7979
{
7981
7980
foreach ( var value in _ContentLocation )
7982
7981
{
7983
- count += output . CopyFrom ( _headerBytes , 207 , 20 ) ;
7984
- count += output . CopyFromAscii ( value ) ;
7982
+ output . CopyFrom ( _headerBytes , 207 , 20 ) ;
7983
+ output . CopyFromAscii ( value ) ;
7985
7984
}
7986
7985
}
7987
7986
7988
7987
if ( ( ( _bits & 65536L ) != 0 ) )
7989
7988
{
7990
7989
foreach ( var value in _ContentMD5 )
7991
7990
{
7992
- count += output . CopyFrom ( _headerBytes , 227 , 15 ) ;
7993
- count += output . CopyFromAscii ( value ) ;
7991
+ output . CopyFrom ( _headerBytes , 227 , 15 ) ;
7992
+ output . CopyFromAscii ( value ) ;
7994
7993
}
7995
7994
}
7996
7995
7997
7996
if ( ( ( _bits & 131072L ) != 0 ) )
7998
7997
{
7999
7998
foreach ( var value in _ContentRange )
8000
7999
{
8001
- count += output . CopyFrom ( _headerBytes , 242 , 17 ) ;
8002
- count += output . CopyFromAscii ( value ) ;
8000
+ output . CopyFrom ( _headerBytes , 242 , 17 ) ;
8001
+ output . CopyFromAscii ( value ) ;
8003
8002
}
8004
8003
}
8005
8004
8006
8005
if ( ( ( _bits & 262144L ) != 0 ) )
8007
8006
{
8008
8007
foreach ( var value in _Expires )
8009
8008
{
8010
- count += output . CopyFrom ( _headerBytes , 259 , 11 ) ;
8011
- count += output . CopyFromAscii ( value ) ;
8009
+ output . CopyFrom ( _headerBytes , 259 , 11 ) ;
8010
+ output . CopyFromAscii ( value ) ;
8012
8011
}
8013
8012
}
8014
8013
8015
8014
if ( ( ( _bits & 524288L ) != 0 ) )
8016
8015
{
8017
8016
foreach ( var value in _LastModified )
8018
8017
{
8019
- count += output . CopyFrom ( _headerBytes , 270 , 17 ) ;
8020
- count += output . CopyFromAscii ( value ) ;
8018
+ output . CopyFrom ( _headerBytes , 270 , 17 ) ;
8019
+ output . CopyFromAscii ( value ) ;
8021
8020
}
8022
8021
}
8023
8022
8024
8023
if ( ( ( _bits & 1048576L ) != 0 ) )
8025
8024
{
8026
8025
foreach ( var value in _AcceptRanges )
8027
8026
{
8028
- count += output . CopyFrom ( _headerBytes , 287 , 17 ) ;
8029
- count += output . CopyFromAscii ( value ) ;
8027
+ output . CopyFrom ( _headerBytes , 287 , 17 ) ;
8028
+ output . CopyFromAscii ( value ) ;
8030
8029
}
8031
8030
}
8032
8031
8033
8032
if ( ( ( _bits & 2097152L ) != 0 ) )
8034
8033
{
8035
8034
foreach ( var value in _Age )
8036
8035
{
8037
- count += output . CopyFrom ( _headerBytes , 304 , 7 ) ;
8038
- count += output . CopyFromAscii ( value ) ;
8036
+ output . CopyFrom ( _headerBytes , 304 , 7 ) ;
8037
+ output . CopyFromAscii ( value ) ;
8039
8038
}
8040
8039
}
8041
8040
8042
8041
if ( ( ( _bits & 4194304L ) != 0 ) )
8043
8042
{
8044
8043
foreach ( var value in _ETag )
8045
8044
{
8046
- count += output . CopyFrom ( _headerBytes , 311 , 8 ) ;
8047
- count += output . CopyFromAscii ( value ) ;
8045
+ output . CopyFrom ( _headerBytes , 311 , 8 ) ;
8046
+ output . CopyFromAscii ( value ) ;
8048
8047
}
8049
8048
}
8050
8049
8051
8050
if ( ( ( _bits & 8388608L ) != 0 ) )
8052
8051
{
8053
8052
foreach ( var value in _Location )
8054
8053
{
8055
- count += output . CopyFrom ( _headerBytes , 319 , 12 ) ;
8056
- count += output . CopyFromAscii ( value ) ;
8054
+ output . CopyFrom ( _headerBytes , 319 , 12 ) ;
8055
+ output . CopyFromAscii ( value ) ;
8057
8056
}
8058
8057
}
8059
8058
8060
8059
if ( ( ( _bits & 16777216L ) != 0 ) )
8061
8060
{
8062
8061
foreach ( var value in _ProxyAutheticate )
8063
8062
{
8064
- count += output . CopyFrom ( _headerBytes , 331 , 21 ) ;
8065
- count += output . CopyFromAscii ( value ) ;
8063
+ output . CopyFrom ( _headerBytes , 331 , 21 ) ;
8064
+ output . CopyFromAscii ( value ) ;
8066
8065
}
8067
8066
}
8068
8067
8069
8068
if ( ( ( _bits & 33554432L ) != 0 ) )
8070
8069
{
8071
8070
foreach ( var value in _RetryAfter )
8072
8071
{
8073
- count += output . CopyFrom ( _headerBytes , 352 , 15 ) ;
8074
- count += output . CopyFromAscii ( value ) ;
8072
+ output . CopyFrom ( _headerBytes , 352 , 15 ) ;
8073
+ output . CopyFromAscii ( value ) ;
8075
8074
}
8076
8075
}
8077
8076
8078
8077
if ( ( ( _bits & 67108864L ) != 0 ) )
8079
8078
{
8080
8079
if ( _rawServer != null )
8081
8080
{
8082
- count += output . CopyFrom ( _rawServer , 0 , _rawServer . Length ) ;
8081
+ output . CopyFrom ( _rawServer , 0 , _rawServer . Length ) ;
8083
8082
} else
8084
8083
foreach ( var value in _Server )
8085
8084
{
8086
- count += output . CopyFrom ( _headerBytes , 367 , 10 ) ;
8087
- count += output . CopyFromAscii ( value ) ;
8085
+ output . CopyFrom ( _headerBytes , 367 , 10 ) ;
8086
+ output . CopyFromAscii ( value ) ;
8088
8087
}
8089
8088
}
8090
8089
8091
8090
if ( ( ( _bits & 134217728L ) != 0 ) )
8092
8091
{
8093
8092
foreach ( var value in _SetCookie )
8094
8093
{
8095
- count += output . CopyFrom ( _headerBytes , 377 , 14 ) ;
8096
- count += output . CopyFromAscii ( value ) ;
8094
+ output . CopyFrom ( _headerBytes , 377 , 14 ) ;
8095
+ output . CopyFromAscii ( value ) ;
8097
8096
}
8098
8097
}
8099
8098
8100
8099
if ( ( ( _bits & 268435456L ) != 0 ) )
8101
8100
{
8102
8101
foreach ( var value in _Vary )
8103
8102
{
8104
- count += output . CopyFrom ( _headerBytes , 391 , 8 ) ;
8105
- count += output . CopyFromAscii ( value ) ;
8103
+ output . CopyFrom ( _headerBytes , 391 , 8 ) ;
8104
+ output . CopyFromAscii ( value ) ;
8106
8105
}
8107
8106
}
8108
8107
8109
8108
if ( ( ( _bits & 536870912L ) != 0 ) )
8110
8109
{
8111
8110
foreach ( var value in _WWWAuthenticate )
8112
8111
{
8113
- count += output . CopyFrom ( _headerBytes , 399 , 20 ) ;
8114
- count += output . CopyFromAscii ( value ) ;
8112
+ output . CopyFrom ( _headerBytes , 399 , 20 ) ;
8113
+ output . CopyFromAscii ( value ) ;
8115
8114
}
8116
8115
}
8117
8116
8118
- return count ;
8119
8117
}
8120
8118
public unsafe void Append ( byte [ ] keyBytes , int keyOffset , int keyLength , string value )
8121
8119
{
0 commit comments