22 references to Encode
Microsoft.AspNetCore.Shared.Tests (22)
runtime\Http2\HPackDecoderTest.cs (1)
708
var success = IntegerEncoder.
Encode
(8194, 7, bytes, out var written);
runtime\Http2\HPackIntegerTest.cs (3)
17
bool success = IntegerEncoder.
Encode
(value, bits, actualResult, out int bytesWritten);
29
bool success = IntegerEncoder.
Encode
(value, bits, actualResult, out int bytesWritten);
65
Assert.True(IntegerEncoder.
Encode
(i, prefixLength, integerBytes, out int length));
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (10)
37
return IntegerEncoder.
Encode
(index, 7, destination, out bytesWritten);
93
if (IntegerEncoder.
Encode
(index, 4, destination, out int indexLength))
125
if (IntegerEncoder.
Encode
(index, 4, destination, out int indexLength))
157
if (IntegerEncoder.
Encode
(index, 6, destination, out int indexLength))
195
if (IntegerEncoder.
Encode
(index, 4, destination, out int indexLength))
374
if (IntegerEncoder.
Encode
(value.Length, 7, destination, out int integerLength))
424
if (IntegerEncoder.
Encode
(value.Length, 7, destination, out int integerLength))
468
if (IntegerEncoder.
Encode
(encodedStringLength, 7, destination, out int integerLength))
506
return IntegerEncoder.
Encode
(value, 5, destination, out bytesWritten);
549
if (IntegerEncoder.
Encode
(valueLength, 7, destination, out int integerLength))
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (8)
28
return IntegerEncoder.
Encode
(index, 6, destination, out bytesWritten);
72
if (IntegerEncoder.
Encode
(index, 4, destination, out int headerBytesWritten))
96
bool res = IntegerEncoder.
Encode
(index, 4, temp, out int headerBytesWritten);
192
if (IntegerEncoder.
Encode
(encodedStringLength, 7, buffer, out int nameLength))
255
if (IntegerEncoder.
Encode
(valueLength, 7, buffer, out int nameLength))
324
if (IntegerEncoder.
Encode
(s.Length, 3, buffer, out int nameLength))
360
if (!IntegerEncoder.
Encode
(0, 8, destination, out length))
375
if (!IntegerEncoder.
Encode
(0, 7, destination, out length))