---
title: Block Buffer Flags
framework: coremedia
role: collectionGroup
role_heading: API Collection
path: coremedia/block-buffer-flags
---

# Block Buffer Flags

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

## Topics

### Constants

- [kCMBlockBufferAssureMemoryNowFlag](coremedia/kcmblockbufferassurememorynowflag.md)
- [kCMBlockBufferAlwaysCopyDataFlag](coremedia/kcmblockbufferalwayscopydataflag.md)
- [kCMBlockBufferDontOptimizeDepthFlag](coremedia/kcmblockbufferdontoptimizedepthflag.md)
- [kCMBlockBufferPermitEmptyReferenceFlag](coremedia/kcmblockbufferpermitemptyreferenceflag.md)

## See Also

### Creating a Block Buffer

- [CMBlockBufferCreateEmpty(allocator:capacity:flags:blockBufferOut:)](coremedia/cmblockbuffercreateempty(allocator:capacity:flags:blockbufferout:).md)
- [CMBlockBufferCreateWithMemoryBlock(allocator:memoryBlock:blockLength:blockAllocator:customBlockSource:offsetToData:dataLength:flags:blockBufferOut:)](coremedia/cmblockbuffercreatewithmemoryblock(allocator:memoryblock:blocklength:blockallocator:customblocksource:offsettodata:datalength:flags:blockbufferout:).md)
- [CMBlockBufferCreateWithBufferReference(allocator:referenceBuffer:offsetToData:dataLength:flags:blockBufferOut:)](coremedia/cmblockbuffercreatewithbufferreference(allocator:referencebuffer:offsettodata:datalength:flags:blockbufferout:).md)
- [CMBlockBufferCreateContiguous(allocator:sourceBuffer:blockAllocator:customBlockSource:offsetToData:dataLength:flags:blockBufferOut:)](coremedia/cmblockbuffercreatecontiguous(allocator:sourcebuffer:blockallocator:customblocksource:offsettodata:datalength:flags:blockbufferout:).md)
- [CMBlockBufferFlags](coremedia/cmblockbufferflags.md)
- [CMBlockBufferCustomBlockSource](coremedia/cmblockbuffercustomblocksource.md)
- [Custom Block Source Version](coremedia/custom-block-source-version.md)
