---
title: "makeContiguous(allocator:flags:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmblockbufferprotocol/makecontiguous(allocator:flags:)"
---

# makeContiguous(allocator:flags:)

## Declaration

```swift
func makeContiguous(allocator: CFAllocator? = kCFAllocatorDefault, flags: CMBlockBuffer.Flags = []) throws -> CMBlockBuffer
```

## See Also

### Modifying a Block Buffer

- [copyDataBytes(to:)](coremedia/cmblockbufferprotocol/copydatabytes(to:).md)
- [dataBytes()](coremedia/cmblockbufferprotocol/databytes().md)
- [fillDataBytes(with:)](coremedia/cmblockbufferprotocol/filldatabytes(with:).md)
- [replaceDataBytes(with:)](coremedia/cmblockbufferprotocol/replacedatabytes(with:).md)
- [isContiguous](coremedia/cmblockbufferprotocol/iscontiguous.md)
- [makeContiguous(allocator:deallocator:flags:)](coremedia/cmblockbufferprotocol/makecontiguous(allocator:deallocator:flags:).md)
- [withContiguousStorage(_:)](coremedia/cmblockbufferprotocol/withcontiguousstorage(_:).md)
