---
title: "process(readingFrom:writingTo:)"
framework: applearchive
role: symbol
role_heading: Type Method
path: "applearchive/archivebytestream/process(readingfrom:writingto:)"
---

# process(readingFrom:writingTo:)

Processes data between two byte streams.

## Declaration

```swift
static func process(readingFrom input: ArchiveByteStream, writingTo output: ArchiveByteStream) throws -> Int64
```

## Parameters

- `input`: The input stream.
- `output`: The output stream.

## Return Value

Return Value The number of processed bytes.

## Discussion

Discussion This function reads data from input and writes it to output until it reaches end-of-file (EOF).
