---
title: "CVPixelBufferGetDataSize(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvpixelbuffergetdatasize(_:)"
---

# CVPixelBufferGetDataSize(_:)

Returns the data size for contiguous planes of the pixel buffer.

## Declaration

```swift
func CVPixelBufferGetDataSize(_ pixelBuffer: CVPixelBuffer) -> Int
```

## Parameters

- `pixelBuffer`: The pixel buffer whose data size you want to obtain.

## Return Value

Return Value The size of the memory if the planes are contiguous, or NULL if it is not.

## See Also

### Inspecting Pixel Buffers

- [CVPixelBufferGetBaseAddress(_:)](corevideo/cvpixelbuffergetbaseaddress(_:).md)
- [CVPixelBufferGetBaseAddressOfPlane(_:_:)](corevideo/cvpixelbuffergetbaseaddressofplane(_:_:).md)
- [CVPixelBufferGetBytesPerRow(_:)](corevideo/cvpixelbuffergetbytesperrow(_:).md)
- [CVPixelBufferGetBytesPerRowOfPlane(_:_:)](corevideo/cvpixelbuffergetbytesperrowofplane(_:_:).md)
- [CVPixelBufferGetHeight(_:)](corevideo/cvpixelbuffergetheight(_:).md)
- [CVPixelBufferGetHeightOfPlane(_:_:)](corevideo/cvpixelbuffergetheightofplane(_:_:).md)
- [CVPixelBufferGetWidth(_:)](corevideo/cvpixelbuffergetwidth(_:).md)
- [CVPixelBufferGetWidthOfPlane(_:_:)](corevideo/cvpixelbuffergetwidthofplane(_:_:).md)
- [CVPixelBufferIsPlanar(_:)](corevideo/cvpixelbufferisplanar(_:).md)
- [CVPixelBufferGetPlaneCount(_:)](corevideo/cvpixelbuffergetplanecount(_:).md)
- [CVPixelBufferGetPixelFormatType(_:)](corevideo/cvpixelbuffergetpixelformattype(_:).md)
- [CVPixelBufferGetExtendedPixels(_:_:_:_:_:)](corevideo/cvpixelbuffergetextendedpixels(_:_:_:_:_:).md)
- [CVPixelBufferGetIOSurface(_:)](corevideo/cvpixelbuffergetiosurface(_:).md)
- [CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)](corevideo/cvpixelbuffercreateresolvedattributesdictionary(_:_:_:).md)
- [CVPixelBufferIsCompatibleWithAttributes(_:_:)](corevideo/cvpixelbufferiscompatiblewithattributes(_:_:).md)
