13 references to Huffman
Microsoft.AspNetCore.Shared.Tests (13)
runtime\Http2\HuffmanDecodingTests.cs (11)
19
(uint code, int bitLength) =
Huffman
.Encode(b);
74
int decodedByteCount =
Huffman
.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded);
89
Assert.Throws<HuffmanDecodingException>(() =>
Huffman
.Decode(encoded, ref decoded));
122
int encodedBits = currentPrefix.Select(b =>
Huffman
.Encode(b).bitLength).Sum();
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);
354
(uint encoded, int bitLength) =
Huffman
.Encode(code);
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);