18 references to TryDecode
InMemory.FunctionalTests (3)
Http2\Http2ConnectionTests.cs (3)
4045Assert.False(integerDecoder.TryDecode(headerFrame.Payload.Span[1], out _)); 4046Assert.False(integerDecoder.TryDecode(headerFrame.Payload.Span[2], out _)); 4047Assert.True(integerDecoder.TryDecode(headerFrame.Payload.Span[3], out var result));
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\Http3\QPack\EncoderStreamReader.cs (5)
173if (_integerDecoder.TryDecode(b, out intResult)) 179if (_integerDecoder.TryDecode(b, out intResult)) 185if (_integerDecoder.TryDecode(b, out intResult)) 217if (_integerDecoder.TryDecode(b, out intResult)) 234if (_integerDecoder.TryDecode(b, out intResult))
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
642if (_integerDecoder.TryDecode(data[currentIndex], out result))
src\Shared\runtime\Http2\Hpack\IntegerDecoder.cs (2)
30/// Otherwise, false -- <see cref="TryDecode(byte, out int)"/> must be called on subsequent bytes. 61/// <returns>If the integer has been fully decoded, true. Otherwise, false -- <see cref="TryDecode(byte, out int)"/> must be called on subsequent bytes.</returns>
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
691if (_integerDecoder.TryDecode(data[currentIndex], out result))
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Http2\Http2HPackEncoderTests.cs (1)
588Assert.True(integerDecoder.TryDecode(buffer[1], out var result));
src\Shared\test\Shared.Tests\runtime\Http2\HPackIntegerTest.cs (4)
45finished = integerDecoder.TryDecode(encoded[i], out actualResult); 72decodeResult = decoder.TryDecode(integerBytes[j], out intResult); 100Assert.False(decoder.TryDecode(octets[j], out intResult)); 103Assert.Throws<HPackDecodingException>(() => decoder.TryDecode(octets[octets.Length - 1], out intResult));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
IntegerDecoderBenchmark.cs (1)
37integerDecoder.TryDecode(_multiByte[j], out _);