---
title: "replaceAll(repeating:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmmutabledatablockbuffer/replaceall(repeating:)"
---

# replaceAll(repeating:)

Replace all bytes in the buffer with the given byte.

## Declaration

```swift
mutating func replaceAll(repeating byte: UInt8)
```
