<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMBlockBufferFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "c:@T@CMBlockBufferFlags"
  },
  "title" : "CMBlockBufferFlags"
}
-->

# CMBlockBufferFlags

A type for flags that control behaviors and features of block buffer APIs.

```
typealias CMBlockBufferFlags = UInt32
```

## Topics

### Constants

[`kCMBlockBufferAssureMemoryNowFlag`](/documentation/CoreMedia/kCMBlockBufferAssureMemoryNowFlag)

When passed to routines that accept block allocators, causes the memory block to be allocated immediately.

[`kCMBlockBufferAlwaysCopyDataFlag`](/documentation/CoreMedia/kCMBlockBufferAlwaysCopyDataFlag)

Used with [`CMBlockBuffer`](/documentation/CoreMedia/CMBlockBuffer) to cause it to always produce an allocated copy of the desired data.

[`kCMBlockBufferDontOptimizeDepthFlag`](/documentation/CoreMedia/kCMBlockBufferDontOptimizeDepthFlag)

Passed to block buffers to suppress reference depth optimization.

[`kCMBlockBufferPermitEmptyReferenceFlag`](/documentation/CoreMedia/kCMBlockBufferPermitEmptyReferenceFlag)

Passed to [`CMBlockBuffer`](/documentation/CoreMedia/CMBlockBuffer) and [`CMBlockBuffer`](/documentation/CoreMedia/CMBlockBuffer) to allow references into a `CMBlockBuffer` that may not yet be populated.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)