TuSDKQueue Class Reference

Inherits from NSObject
Declared in TuSDKQueue.h

Overview

数据队列

– initWithCapacity:

初始化队列

- (instancetype)initWithCapacity:(CFIndex)capacity

Parameters

capacity

队列容量

Return Value

队列实例

Availability

v3.0

Declared In

TuSDKQueue.h

– poll

取出首元素 并从队列中删除

- (const void *)poll

Return Value

返回首元素

Availability

v3.0

Declared In

TuSDKQueue.h

– peek

取出首元素

- (const void *)peek

Return Value

返回首元素

Availability

v3.0

Declared In

TuSDKQueue.h

– last

获取最后一个元素

- (const void *)last

Return Value

返回尾元素

Availability

v3.0

Declared In

TuSDKQueue.h

– put:

将数据放入队尾

- (void)put:(const void *)value

Parameters

value

数据

Availability

v3.0

Declared In

TuSDKQueue.h

– putArray:

将一个数组的元素依次放入队尾

- (void)putArray:(CFArrayRef)array

Parameters

array

数组对象

Availability

v3.0

Declared In

TuSDKQueue.h

– size

获取队列size

- (CFIndex)size

Return Value

队列数量

Availability

v3.0

Declared In

TuSDKQueue.h

– isEmpty

当前队里是否有数据

- (BOOL)isEmpty

Return Value

true/false

Availability

v3.0

Declared In

TuSDKQueue.h

– clear

清空数据

- (void)clear

Availability

v3.0

Declared In

TuSDKQueue.h