<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVBufferRepresentable",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "s:9CoreVideo21CVBufferRepresentableP"
  },
  "title" : "CVBufferRepresentable"
}
-->

# CVBufferRepresentable

CVBufferRepresentable protocol is a sealed protocol intended to be implemented by the
types in CoreVideo framework. This protocol facilitates Swift types that wrap a value
of CVBuffer type.

```
protocol CVBufferRepresentable<Buffer> : ~Copyable
```

## Topics

### Associated Types

[`associatedtype Buffer : CVBuffer`](/documentation/CoreVideo/CVBufferRepresentable/Buffer)

### Instance Methods

[`func withUnsafeBuffer<R>((Self.Buffer) throws -> sending R) rethrows -> sending R`](/documentation/CoreVideo/CVBufferRepresentable/withUnsafeBuffer(_:))

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

## Relationships

### Inherited By

[`CVImageBufferRepresentable`](/documentation/CoreVideo/CVImageBufferRepresentable)

[`CVPixelBufferRepresentable`](/documentation/CoreVideo/CVPixelBufferRepresentable)

### Conforming Types

[`CVReadOnlyPixelBuffer`](/documentation/CoreVideo/CVReadOnlyPixelBuffer)

[`CVMutablePixelBuffer`](/documentation/CoreVideo/CVMutablePixelBuffer)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)