TuSDKQueue Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKQueue.h |
– 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
– 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
– isEmpty
当前队里是否有数据
- (BOOL)isEmpty
Return Value
true/false
Availability
v3.0
Declared In
TuSDKQueue.h