5 writes to Index
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
src\Servers\Kestrel\shared\KnownHeaders.cs (5)
183
Index
= index,
192
Index
= -1,
254
Index
= index,
263
Index
= 63,
281
Index
= index,
17 references to Index
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (17)
src\Servers\Kestrel\shared\KnownHeaders.cs (17)
299
.Select(header => 1L << header.
Index
)
304
.Select(header => 1L << header.
Index
)
479
public string FlagBit() => $"{"0x" + (1L <<
Index
).ToString("x", CultureInfo.InvariantCulture)}L";
480
public string TestBitCore(string name) => $"({name} & {"0x" + (1L <<
Index
).ToString("x", CultureInfo.InvariantCulture)}L) != 0";
483
public string TestNotTempBit() => $"(tempBits & ~{"0x" + (1L <<
Index
).ToString("x", CultureInfo.InvariantCulture)}L) == 0";
484
public string TestNotBit() => $"(_bits & {"0x" + (1L <<
Index
).ToString("x", CultureInfo.InvariantCulture)}L) == 0";
485
public string SetBit() => $"_bits |= {"0x" + (1L <<
Index
).ToString("x", CultureInfo.InvariantCulture)}L";
486
public string ClearBit() => $"_bits &= ~{"0x" + (1L <<
Index
).ToString("x", CultureInfo.InvariantCulture)}L";
774
Debug.Assert(requestHeaders.Max(x => x.
Index
) <= 62);
779
Debug.Assert(responseHeaders.Count(x => x.
Index
== 63) == 1);
1160
tempBits &= ~{"0x" + (1L << header.
Index
).ToString("x", CultureInfo.InvariantCulture)}L;
1176
tempBits &= ~{"0x" + (1L << header.
Index
).ToString("x", CultureInfo.InvariantCulture)}L;
1240
{{{Each(loop.Headers.OrderBy(h => h.
Index
).Where(h => h.Identifier != "ContentLength"), header => $@"
1241
case {header.
Index
}: // Header: ""{header.Name}""
1249
tempBits ^= {"0x" + (1L << header.
Index
).ToString("x", CultureInfo.InvariantCulture)}L;
1397
case {header.
Index
}: // Header: ""{header.Name}""
1401
")}_currentBits ^= {"0x" + (1L << header.
Index
).ToString("x", CultureInfo.InvariantCulture)}L;