13 references to Huffman
Microsoft.AspNetCore.Shared.Tests (13)
runtime\Http2\HuffmanDecodingTests.cs (11)
19(uint code, int bitLength) = Huffman.Encode(b); 74int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded); 89Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(encoded, ref decoded)); 122int encodedBits = currentPrefix.Select(b => Huffman.Encode(b).bitLength).Sum(); 250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination); 333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 344int 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)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
637return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);