---
title: ArchiveByteStreamProtocol
framework: applearchive
role: symbol
role_heading: Protocol
path: applearchive/archivebytestreamprotocol
---

# ArchiveByteStreamProtocol

A set of methods that defines the interface for using an archive stream that reads from and writes to buffers.

## Declaration

```swift
protocol ArchiveByteStreamProtocol
```

## Topics

### Reading and Writing Data

- [read(into:)](applearchive/archivebytestreamprotocol/read(into:).md)
- [read(into:atOffset:)](applearchive/archivebytestreamprotocol/read(into:atoffset:).md)
- [write(from:)](applearchive/archivebytestreamprotocol/write(from:).md)
- [write(from:atOffset:)](applearchive/archivebytestreamprotocol/write(from:atoffset:).md)

### Using Archive Byte Streams

- [seek(toOffset:relativeTo:)](applearchive/archivebytestreamprotocol/seek(tooffset:relativeto:).md)
- [cancel()](applearchive/archivebytestreamprotocol/cancel().md)
- [close()](applearchive/archivebytestreamprotocol/close().md)

## Relationships

### Conforming Types

- [ArchiveByteStream](applearchive/archivebytestream.md)

## See Also

### Apple Archive streams

- [ArchiveStreamProtocol](applearchive/archivestreamprotocol.md)
- [ArchiveStream](applearchive/archivestream.md)
- [ArchiveByteStream](applearchive/archivebytestream.md)
