---
title: "init(count:blockSource:)"
framework: coremedia
role: symbol
role_heading: Initializer
path: "coremedia/cmmutabledatablockbuffer/init(count:blocksource:)"
---

# init(count:blockSource:)

Creates a block buffer with count number of bytes.

## Declaration

```swift
init(count: Int = 0, blockSource: CMMutableDataBlockBuffer.BlockSource? = nil)
```

## Parameters

- `count`: Number of bytes to allocate in the block buffer.
- `blockSource`: Optional source to allocate and deallocate memory for the data blocks.
