One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMSimpleQueue

class · iOS 5.0+ · SDK 27.1

class CMSimpleQueue

Members (9)

init · iOS 5.0+

init

TypeScript
static init(object: CMSimpleQueue): CMSimpleQueue
Swift declaration
init(referencing object: CMSimpleQueue)
get · iOS 13.0+

head

TypeScript
get head(): (SDKHandle) | null
Swift declaration
var head: UnsafeRawPointer? { get }

Returns the element at the head of the queue. - Returns: The head element. nil if the queue was empty, or if there was some other error.

get · iOS 13.0+

count

TypeScript
get count(): number
Swift declaration
var count: Int { get }

The number of elements currently in the queue. Returns 0 if there is an error.

method · iOS 13.0+

reset

TypeScript
reset(): void
Swift declaration
func reset() throws

Resets the queue. This function resets the queue to its empty state; all values in the queue prior to reset are lost. Note that CMSimpleQueueReset is not synchronized in any way, so the reader thread and writer thread must be held off by the client during this operation.

get · iOS 13.0+

typeID

TypeScript
static get typeID(): number
Swift declaration
static var typeID: CFTypeID { get }

The `CFTypeID` corresponding to `CMSimpleQueue`. You can check if a CFTypeRef object is actually a CMSimpleQueue by comparing CFGetTypeID(object) with CMSimpleQueue.typeID.

method · iOS 13.0+

dequeue

TypeScript
dequeue(): (SDKHandle) | null
Swift declaration
func dequeue() -> UnsafeRawPointer?

Dequeues an element from the queue. - Returns: The dequeued element. nil if the queue was empty, or if there was some other error.

method · iOS 13.0+

enqueue

TypeScript
enqueue(element: SDKHandle): void
Swift declaration
func enqueue(_ element: UnsafeRawPointer) throws

Enqueues an element on the queue. If the queue is full, this operation will fail. - Parameter element: Element to enqueue.

get · iOS 13.0+

capacity

TypeScript
get capacity(): number
Swift declaration
var capacity: Int { get }

The number of elements that can be held in the queue. Returns 0 if there is an error.

get · iOS 13.0+

fullness

TypeScript
get fullness(): number
Swift declaration
var fullness: Float { get }

A convenience macro that returns GetCount/GetCapacity, computed in floating point. 0.0 is empty, 0.5 is half full, 1.0 is full. Returns 0.0 if there is an error

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →