---
title: "readData(ofLength:)"
framework: compression
role: symbol
role_heading: Instance Method
path: "compression/inputfilter/readdata(oflength:)"
---

# readData(ofLength:)

Reads processed data from the input filter.

## Declaration

```swift
func readData(ofLength count: Int) throws -> Data?
```
