10 references to Decode
Microsoft.AspNetCore.Shared.Tests (10)
runtime\Http2\HuffmanDecodingTests.cs (8)
74
int decodedByteCount = Huffman.
Decode
(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded);
89
Assert.Throws<HuffmanDecodingException>(() => Huffman.
Decode
(encoded, ref decoded));
250
Assert.Equal(expected.Length, Huffman.
Decode
(new ReadOnlySpan<byte>(encoded), ref dst));
271
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.
Decode
(new ReadOnlySpan<byte>(encoded), ref dst));
288
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.
Decode
(new ReadOnlySpan<byte>(encoded), ref dst));
299
int decodedCount = Huffman.
Decode
(new ReadOnlySpan<byte>(encoded), ref actualDestination);
333
Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.
Decode
(new ReadOnlySpan<byte>(encoded), ref dst));
344
int decodedLength = Huffman.
Decode
(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594
return Huffman.
Decode
(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
637
return Huffman.
Decode
(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);