init
TypeScriptstatic init(ageOutDuration?: number): CMMutableDataBlockBuffer_MemoryPoolSwift declarationinit(ageOutDuration: TimeInterval = 0.5)class · iOS 26.0+ · SDK 27.1
final class MemoryPoolOptimize memory allocations when working with large block buffers. This is a memory allocation service that holds a pool of recently deallocated memory. Its purpose is to speed up subsequent allocations of the same size. You should use a pool in cases where you need to repeatedly allocate large blocks of memory, such as a video encoding app that outputs compressed data. This object allocates memory by page. It doesn’t sub-allocate memory within pages, so don’t use it to allocate small blocks. A pool instance deallocates memory if it isn’t reused in ``ageOutDuration``, so that short-term peak usage doesn’t cause persistent bloat.
static init(ageOutDuration?: number): CMMutableDataBlockBuffer_MemoryPoolSwift declarationinit(ageOutDuration: TimeInterval = 0.5)flush(): voidSwift declarationfinal func flush()Release all memory that the pool was waiting to deallocate.
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CMMutableDataBlockBuffer.MemoryPool.makeBlockBuffer(count:)
The iOS SDK compiler rejected this binding: instance method 'out' requires that 'CMMutableDataBlockBuffer' be a class type
CMMutableDataBlockBuffer.MemoryPool.makeBlockBuffer(copying:)
The iOS SDK compiler rejected this binding: instance method 'out' requires that 'CMMutableDataBlockBuffer' be a class type