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

# Block Buffer Error Codes

Error codes that framework operations produce.

## Topics

### Errors

[`var kCMBlockBufferBadCustomBlockSourceErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferBadCustomBlockSourceErr)

An error code that indicates the custom block source is invalid.

[`var kCMBlockBufferBadLengthParameterErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferBadLengthParameterErr)

An error code that indicates the block length is zero or doesn’t equal the size of the memory block.

[`var kCMBlockBufferBadOffsetParameterErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferBadOffsetParameterErr)

An error code that indicates the offset doesn’t point to the location of data in the memory block.

[`var kCMBlockBufferBadPointerParameterErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferBadPointerParameterErr)

An error code that indicates the block buffer reference is invalid.

[`var kCMBlockBufferBlockAllocationFailedErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferBlockAllocationFailedErr)

An error code that indicates the block allocator failed to allocate a memory block.

[`var kCMBlockBufferEmptyBBufErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferEmptyBBufErr)

An error code that indicates the block buffer is empty.

[`var kCMBlockBufferInsufficientSpaceErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferInsufficientSpaceErr)

An error code that indicates the system failed to create a new buffer because of insufficient space at the buffer out location.

[`var kCMBlockBufferStructureAllocationFailedErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferStructureAllocationFailedErr)

An error code that indicates the structure allocator failed to allocate a block buffer.

[`var kCMBlockBufferUnallocatedBlockErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferUnallocatedBlockErr)

An error code that indicates the system encountered an unallocated memory block.

[`var kCMBlockBufferNoErr: OSStatus`](/documentation/CoreMedia/kCMBlockBufferNoErr)

A code that indicates the system successfully created a block buffer with no errors.



---

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)