Contents

CMBufferQueueDequeue(_:)

Dequeues a buffer from a queue.

Declaration

func CMBufferQueueDequeue(_ queue: CMBufferQueue) -> CMBuffer?

Parameters

  • queue:

    The CMBufferQueue from which to dequeue a buffer.

Return Value

The dequeued buffer. Will be NULL if the queue is empty.

Discussion

The buffer is released by the queue, but it is also retained for the client. Buffer ownership is thereby transferred from queue to client. The client need not retain the buffer, but is responsible to release it when done with it.

See Also

Managing a Queue