<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Compression",
  "identifier" : "/documentation/Compression/compression_status",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Compression"
    ],
    "preciseIdentifier" : "c:@EA@compression_status"
  },
  "title" : "compression_status"
}
-->

# compression_status

A set of values used to represent the status of stream compression.

```
struct compression_status
```

## Topics

### Status Constants

[`COMPRESSION_STATUS_OK`](/documentation/Compression/COMPRESSION_STATUS_OK)

Indicates the stream has consumed all data in the source buffer, or used all space in the destination buffer.

[`COMPRESSION_STATUS_END`](/documentation/Compression/COMPRESSION_STATUS_END)

Indicates the stream has read all input from the source, and written all output to the destination.

[`COMPRESSION_STATUS_ERROR`](/documentation/Compression/COMPRESSION_STATUS_ERROR)

Indicates an error with stream compression.

### Initializers

[`init(_:)`](/documentation/Compression/compression_status/init(_:))

Creates a new constant from the given raw value.

[`init(rawValue:)`](/documentation/Compression/compression_status/init(rawValue:))

Creates a new constant from the given raw value.

### Instance Properties

[`rawValue`](/documentation/Compression/compression_status/rawValue)

The raw value of the constant.



---

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)