One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMMutableDataBlockBuffer.BlockSource

struct · iOS 26.0+ · SDK 27.1

struct BlockSource

Provides ability to allocate memory for blocks using custom allocator

Members (3)

get · iOS 26.0+

deallocate

TypeScript
get deallocate(): ((arg0: ArrayBuffer) => Promise<void>)
Swift declaration
var deallocate: @Sendable (UnsafeMutableRawBufferPointer) -> Void
set · iOS 26.0+

deallocate

TypeScript
set deallocate(value: ((arg0: ArrayBuffer) => void))
Swift declaration
var deallocate: @Sendable (UnsafeMutableRawBufferPointer) -> Void
get · iOS 26.0+

allocate

TypeScript
get allocate(): ((arg0: number) => Promise<ArrayBuffer>)
Swift declaration
var allocate: @Sendable (Int) -> UnsafeMutableRawBufferPointer

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CMMutableDataBlockBuffer.BlockSource.allocate

closure property answers its caller

CMMutableDataBlockBuffer.BlockSource.init(allocate:deallocate:)

callback cannot propagate synchronous failure

All CoreMedia types →