---
title: "append(referenceOf:optimizeDepth:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmreadonlydatablockbuffer/append(referenceof:optimizedepth:)-2x1ta"
---

# append(referenceOf:optimizeDepth:)

Append a reference to a range of another block buffer.

## Declaration

```swift
mutating func append(referenceOf other: CMReadOnlyDataBlockBuffer, optimizeDepth: Bool = true)
```

## Parameters

- `optimizeDepth`: Keep the depth of buffer reference graph to a minimum.

## Discussion

Discussion The range within the block buffer is not required to be contiguous. Providing out of bounds range will result in a precondition failure.
