8 references to TryDecode
Microsoft.AspNetCore.Shared.Tests (8)
runtime\Http2\HPackIntegerTest.cs (4)
45
finished = integerDecoder.
TryDecode
(encoded[i], out actualResult);
72
decodeResult = decoder.
TryDecode
(integerBytes[j], out intResult);
100
Assert.False(decoder.
TryDecode
(octets[j], out intResult));
103
Assert.Throws<HPackDecodingException>(() => decoder.
TryDecode
(octets[octets.Length - 1], out intResult));
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
637
if (_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)
691
if (_integerDecoder.
TryDecode
(data[currentIndex], out result))