Buffer size of CMSampleBufferRef
问题 I am trying to get the size of CMSampleBufferRef from AVFoundation call-back - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection According to documentation https://developer.apple.com/library/mac/documentation/CoreMedia/Reference/CMSampleBuffer/index.html#//apple_ref/c/func/CMSampleBufferGetSampleSize size_t CMSampleBufferGetTotalSampleSize ( CMSampleBufferRef sbuf ); If I understand it