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