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] Add missing enum members. Fixes #20319. #20332

Merged
merged 1 commit into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/Compression/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,30 @@ namespace Compression {

// this enum as per the headers is an int NOT an NSInteger
public enum CompressionAlgorithm {
/// <summary>The LZ4 compression format.</summary>
LZ4 = 0x100,
/// <summary>The <see cref="LZ4">LZ4</see> compression format, without block headers.</summary>
LZ4Raw = 0x101,
/// <summary>The Lempel–Ziv Finite State Entropy (LZFSE) compression format.</summary>
/// <remarks>This is the format Apple recommends on Apple platforms.</remarks>
Lzfse = 0x801,
/// <summary>The Lempel–Ziv–Markov (LZMA) compression format.</summary>
/// <remarks>The encoder in the Compression framework only supports level 6. The decoder supports all compression levels.</remarks>
Lzma = 0x306,
/// <summary>The zlib compression format. This is the compression format most compatible with other platforms.</summary>
/// <remarks>The encoder in the Compression framework only supports level 5. The decoder supports all compression levels.</remarks>
Zlib = 0x205,
/// <summary>The Brotli compression format.</summary>
/// <remarks>The encoder in the Compression framework only supports the Brotli level 2 encoder. The decoder supports all compression levels.</remarks>
Brotli = 0xB02,
/// <summary>The LZBitmap compression format.</summary>
/// <remarks>This compression algorithm is only available on Apple devices.</remarks>
#if NET
[iOS (15, 0), Mac (12, 0), TV (15, 0), MacCatalyst (15, 0)]
#else
[iOS (15, 0), Mac (12, 0), TV (15, 0), Watch (8, 0)]
#endif
LZBitmap = 0x702,
}

[Internal]
Expand Down
5 changes: 0 additions & 5 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6647,12 +6647,7 @@ F:CloudKit.CKSyncEngineZoneDeletionReason.Deleted
F:CloudKit.CKSyncEngineZoneDeletionReason.EncryptedDataReset
F:CloudKit.CKSyncEngineZoneDeletionReason.Purged
F:CloudKit.CKSyncEngineZoneDeletionReason.value__
F:Compression.CompressionAlgorithm.LZ4
F:Compression.CompressionAlgorithm.LZ4Raw
F:Compression.CompressionAlgorithm.Lzfse
F:Compression.CompressionAlgorithm.Lzma
F:Compression.CompressionAlgorithm.value__
F:Compression.CompressionAlgorithm.Zlib
F:Contacts.CNAuthorizationStatus.Authorized
F:Contacts.CNAuthorizationStatus.Denied
F:Contacts.CNAuthorizationStatus.NotDetermined
Expand Down
Loading