Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression.CompressionAlgorithm enum missing BROTLI & LZBITMAP values #20319

Closed
tipa opened this issue Mar 17, 2024 · 1 comment · Fixed by #20332
Closed

Compression.CompressionAlgorithm enum missing BROTLI & LZBITMAP values #20319

tipa opened this issue Mar 17, 2024 · 1 comment · Fixed by #20332

Comments

@tipa
Copy link

tipa commented Mar 17, 2024

Compression.CompressionAlgorithm enum is missing BROTLI + LZBITMAP

public enum CompressionAlgorithm {
LZ4 = 0x100,
LZ4Raw = 0x101,
Lzfse = 0x801,
Lzma = 0x306,
Zlib = 0x205,
}

Steps to Reproduce

using var compressedStream = new MemoryStream();
using (var compressionStream = new CompressionStream(compressedStream, CompressionAlgorithm.Brotli, true))
{
    compressionStream.Write(data);
}

Expected Behavior

Builds and works

Actual Behavior

Doesn't build

Workaround

using (var compressionStream = new CompressionStream(compressedStream, (CompressionAlgorithm)0xb02, true))

Environment

.NET 8

@rolfbjarne
Copy link
Member

Adding Brotli is easy, but Lzbitmap is a bit more work, because according to the documentation it only works with the compression_encode_buffer and compression_decode_buffer functions, which we haven't bound yet.

@rolfbjarne rolfbjarne added this to the Future milestone Mar 18, 2024
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants