<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Compression",
  "identifier" : "/documentation/Compression/Algorithm/lzbitmap",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Compression"
    ],
    "preciseIdentifier" : "s:11Compression9AlgorithmO8lzbitmapyA2CmF"
  },
  "title" : "Algorithm.lzbitmap"
}
-->

# Algorithm.lzbitmap

The LZBITMAP compression algorithm, which is designed to exploit the vector instruction set of current CPUs.

```
case lzbitmap
```

## Discussion

The LZBITMAP compression algorithm provides compression ratios as close as possible to [`COMPRESSION_ZLIB`](/documentation/Compression/COMPRESSION_ZLIB) and [`COMPRESSION_LZFSE`](/documentation/Compression/COMPRESSION_LZFSE), with a lower compression cost. This compression algorithm is available only for the Compression buffer API functions, [`compression_encode_buffer(_:_:_:_:_:_:)`](/documentation/Compression/compression_encode_buffer(_:_:_:_:_:_:)) and [`compression_decode_buffer(_:_:_:_:_:_:)`](/documentation/Compression/compression_decode_buffer(_:_:_:_:_:_:)).

[`COMPRESSION_LZBITMAP`](/documentation/Compression/COMPRESSION_LZBITMAP) is available only on Apple devices.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)