11 references to Decode
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http3\QPack\EncoderStreamReader.cs (1)
268
return Huffman.
Decode
(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599
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);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
src\Shared\test\Shared.Tests\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);