One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMMutableDataBlockBuffer.BlockRegion

struct · iOS 26.0+ · SDK 27.1

struct BlockRegion

A contiguous region of mutable memory within a block buffer.

Members (7)

get · iOS 26.0+

startIndex

TypeScript
get startIndex(): number
Swift declaration
let startIndex: Int

The position of the first element in a nonempty collection.

method · iOS 26.0+

withUnsafeBytes

TypeScript
withUnsafeBytes(body: ((arg0: ArrayBuffer) => unknown)): unknown
Swift declaration
func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType

Calls the given closure with a pointer to the underlying bytes of the region’s contiguous storage.

method · iOS 26.0+

withUnsafeMutableBytes

TypeScript
withUnsafeMutableBytes(body: ((arg0: ArrayBuffer) => unknown)): unknown
Swift declaration
func withUnsafeMutableBytes<ResultType>(_ body: (UnsafeMutableRawBufferPointer) throws -> ResultType) rethrows -> ResultType

Calls the given closure with a mutable pointer to the underlying bytes of the region’s contiguous storage.

get · iOS 26.0+

count

TypeScript
get count(): number
Swift declaration
var count: Int { get }

Number of bytes in the block region

get · iOS 26.0+

regions

TypeScript
get regions(): SDKHandle
Swift declaration
var regions: CollectionOfOne<CMMutableDataBlockBuffer.BlockRegion> { get }

The single buffer that makes up this region.

get · iOS 26.0+

endIndex

TypeScript
get endIndex(): number
Swift declaration
var endIndex: Int { get }

The position one greater than the last valid subscript argument.

subscript · iOS 26.0+

subscript

TypeScript
subscript(position: number): number
Swift declaration
subscript(position: CMMutableDataBlockBuffer.BlockRegion.Index) -> UInt8 { get set }

Accesses the data byte at the specified position.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →