We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e1490c commit a1340d6Copy full SHA for a1340d6
1 file changed
test/LibDeflate.Tests/CompressorTests.cs
@@ -59,7 +59,7 @@ void Compress()
59
ReadOnlySpan<byte> inSpan = input.Span;
60
using var outputOwner = compressor.Compress(inSpan);
61
62
- Span<byte> output = new byte[input.Length];
+ Span<byte> output = new byte[compressor.GetBound(input.Length)];
63
compressor.Compress(inSpan, output);
64
}
65
0 commit comments