@@ -38,7 +38,7 @@ public static byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
38
38
Span < byte > buffer = stackalloc byte [ IntegerEncoder . MaxInt32EncodedLength ] ;
39
39
40
40
bool res = EncodeStaticIndexedHeaderField ( index , buffer , out int bytesWritten ) ;
41
- Debug . Assert ( res == true ) ;
41
+ Debug . Assert ( res ) ;
42
42
43
43
return buffer . Slice ( 0 , bytesWritten ) . ToArray ( ) ;
44
44
}
@@ -93,7 +93,7 @@ public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int
93
93
94
94
temp [ 0 ] = 0b01110000 ;
95
95
bool res = IntegerEncoder . Encode ( index , 4 , temp , out int headerBytesWritten ) ;
96
- Debug . Assert ( res == true ) ;
96
+ Debug . Assert ( res ) ;
97
97
98
98
return temp . Slice ( 0 , headerBytesWritten ) . ToArray ( ) ;
99
99
}
@@ -102,7 +102,7 @@ public static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int
102
102
{
103
103
Span < byte > temp = value . Length < 256 ? stackalloc byte [ 256 + IntegerEncoder . MaxInt32EncodedLength * 2 ] : new byte [ value . Length + IntegerEncoder . MaxInt32EncodedLength * 2 ] ;
104
104
bool res = EncodeLiteralHeaderFieldWithStaticNameReference ( index , value , temp , out int bytesWritten ) ;
105
- Debug . Assert ( res == true ) ;
105
+ Debug . Assert ( res ) ;
106
106
return temp . Slice ( 0 , bytesWritten ) . ToArray ( ) ;
107
107
}
108
108
@@ -168,7 +168,7 @@ public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string
168
168
Span < byte > temp = name . Length < 256 ? stackalloc byte [ 256 + IntegerEncoder . MaxInt32EncodedLength ] : new byte [ name . Length + IntegerEncoder . MaxInt32EncodedLength ] ;
169
169
170
170
bool res = EncodeNameString ( name , temp , out int nameLength ) ;
171
- Debug . Assert ( res == true ) ;
171
+ Debug . Assert ( res ) ;
172
172
173
173
return temp . Slice ( 0 , nameLength ) . ToArray ( ) ;
174
174
}
@@ -178,7 +178,7 @@ public static byte[] EncodeLiteralHeaderFieldWithoutNameReferenceToArray(string
178
178
Span < byte > temp = ( name . Length + value . Length ) < 256 ? stackalloc byte [ 256 + IntegerEncoder . MaxInt32EncodedLength * 2 ] : new byte [ name . Length + value . Length + IntegerEncoder . MaxInt32EncodedLength * 2 ] ;
179
179
180
180
bool res = EncodeLiteralHeaderFieldWithoutNameReference ( name , value , temp , out int bytesWritten ) ;
181
- Debug . Assert ( res == true ) ;
181
+ Debug . Assert ( res ) ;
182
182
183
183
return temp . Slice ( 0 , bytesWritten ) . ToArray ( ) ;
184
184
}
0 commit comments