initWithCapacity
Initializes an IOPacketQueue object.
Declaration
virtual bool initWithCapacity(
UInt32 capacity = capacity);Parameters
- capacity:
The initial capacity of the queue. Can be later changed by calling the setCapacity() method.
Return Value
Returns true if initialized successfully, false otherwise.
Overview
This method initializes an IOPacketQueue object with the given capacity.