Contents

CMSampleBufferIsValid(_:)

Returns a Boolean value that indicates whether a sample buffer is valid.

Declaration

func CMSampleBufferIsValid(_ sbuf: CMSampleBuffer) -> Bool

Parameters

  • sbuf:

    The CMSampleBuffer being interrogated.

Return Value

A Boolean indicating whether the sample buffer is still valid.

Discussion

Returns false if sbuf is NULL or CMSampleBufferInvalidate was called, true otherwise. Doesn’t perform any kind of exhaustive validation of the sample buffer.

See Also

Invalidating Sample Buffers