<!--
{
  "documentType" : "article",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/block-buffer-flags",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Block Buffer Flags"
}
-->

# Block Buffer Flags

An enumeration of flags that control behaviors and features of block buffer APIs.

## Topics

### Constants

[`var kCMBlockBufferAssureMemoryNowFlag: CMBlockBufferFlags`](/documentation/CoreMedia/kCMBlockBufferAssureMemoryNowFlag)

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

[`var kCMBlockBufferAlwaysCopyDataFlag: CMBlockBufferFlags`](/documentation/CoreMedia/kCMBlockBufferAlwaysCopyDataFlag)

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

[`var kCMBlockBufferDontOptimizeDepthFlag: CMBlockBufferFlags`](/documentation/CoreMedia/kCMBlockBufferDontOptimizeDepthFlag)

Passed to block buffers to suppress reference depth optimization.

[`var kCMBlockBufferPermitEmptyReferenceFlag: CMBlockBufferFlags`](/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)