30 references to IntegerEncoder
Microsoft.AspNetCore.Shared.Tests (30)
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 (16)
28
return
IntegerEncoder
.Encode(index, 6, destination, out bytesWritten);
39
Span<byte> buffer = stackalloc byte[
IntegerEncoder
.MaxInt32EncodedLength];
72
if (
IntegerEncoder
.Encode(index, 4, destination, out int headerBytesWritten))
93
Span<byte> temp = stackalloc byte[
IntegerEncoder
.MaxInt32EncodedLength];
96
bool res =
IntegerEncoder
.Encode(index, 4, temp, out int headerBytesWritten);
104
Span<byte> temp = value.Length < 256 ? stackalloc byte[256 +
IntegerEncoder
.MaxInt32EncodedLength * 2] : new byte[value.Length +
IntegerEncoder
.MaxInt32EncodedLength * 2];
164
Span<byte> temp = name.Length < 256 ? stackalloc byte[256 +
IntegerEncoder
.MaxInt32EncodedLength] : new byte[name.Length +
IntegerEncoder
.MaxInt32EncodedLength];
174
Span<byte> temp = (name.Length + value.Length) < 256 ? stackalloc byte[256 +
IntegerEncoder
.MaxInt32EncodedLength * 2] : new byte[name.Length + value.Length +
IntegerEncoder
.MaxInt32EncodedLength * 2];
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))