---
title: ContiguousBytes
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/contiguousbytes
---

# ContiguousBytes

A protocol that declares the type offers direct access to the underlying raw bytes in a contiguous manner.

## Declaration

```swift
protocol ContiguousBytes : ~Copyable, ~Escapable
```

## Topics

### Accessing Underlying Storage

- [withUnsafeBytes(_:)](foundation/contiguousbytes/withunsafebytes(_:).md)

### Instance Methods

- [withBytes(_:)](foundation/contiguousbytes/withbytes(_:).md)

## Relationships

### Conforming Types

- [Data](foundation/data.md)

## See Also

### Binary Data

- [Data](foundation/data.md)
- [DataProtocol](foundation/dataprotocol.md)
- [MutableDataProtocol](foundation/mutabledataprotocol.md)
