CMBlockBufferAssureBlockMemory(_:)
Assures that the system allocates memory for all memory blocks in a block buffer.
Declaration
func CMBlockBufferAssureBlockMemory(_ theBuffer: CMBlockBuffer) -> OSStatusParameters
- theBuffer:
CMBlockBufferto operate on. Must not beNULL.
Return Value
Returns kCMBlockBufferNoErr if successful.
Discussion
Traverses the possibly complex CMBlockBuffer, allocating the memory for any constituent memory blocks that are not yet allocated.
See Also
Modifying a Block Buffer
CMBlockBufferAppendMemoryBlock(_:memoryBlock:length:blockAllocator:customBlockSource:offsetToData:dataLength:flags:)CMBlockBufferAppendBufferReference(_:targetBBuf:offsetToData:dataLength:flags:)CMBlockBufferAccessDataBytes(_:atOffset:length:temporaryBlock:returnedPointerOut:)CMBlockBufferCopyDataBytes(_:atOffset:dataLength:destination:)CMBlockBufferReplaceDataBytes(with:blockBuffer:offsetIntoDestination:dataLength:)CMBlockBufferFillDataBytes(with:blockBuffer:offsetIntoDestination:dataLength:)