One Logo Pool Ball
CoreVideo · IOS API REFERENCE

CVReadOnlyPixelBuffer

class · iOS 26.0+ · SDK 27.1

final class CVReadOnlyPixelBuffer

CVReadOnlyPixelBuffer provides an immutable view of the pixel data held by the pixel buffer.

Members (3)

method · iOS 26.0+

withUnsafeBuffer

TypeScript
withUnsafeBuffer(body: ((arg0: CVBuffer) => unknown)): unknown
Swift declaration
final func withUnsafeBuffer<R>(_ body: (CVPixelBuffer) throws -> sending R) rethrows -> sending R where R : ~Copyable

Access the underlying `Buffer` object. This function should be used to bridge existing code that uses the Buffer type.

method · iOS 26.0+

withUnsafeBuffer

TypeScript
withUnsafeBuffer39343(body: ((arg0: CVBuffer) => unknown)): unknown
Swift declaration
final func withUnsafeBuffer<R>(_ body: (CVPixelBuffer) throws -> sending R) rethrows -> sending R
init · iOS 26.0+

init

TypeScript
static init(unsafeBuffer: CVBuffer): CVReadOnlyPixelBuffer
Swift declaration
init(unsafeBuffer: sending CVPixelBuffer)

Initialize a read-only pixel buffer by transferring existing CVPixelBuffer value. - Parameter unsafeBuffer: Owership of this buffer is transferred to the new instance. This buffer is *not* copied and must not be modified after this call.

Skipped declarations

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

CVReadOnlyPixelBuffer.init(_:)

The iOS SDK compiler rejected this binding: instance method 'arg' requires that 'CVMutablePixelBuffer' conform to 'Copyable'

All CoreVideo types →