init(bufferClass:minimumCapacity:makingHeaderWith:)
Create with new storage containing an initial Header and space for at least minimumCapacity elements.
Declaration
init(bufferClass: AnyClass, minimumCapacity: Int, makingHeaderWith factory: (AnyObject, (AnyObject) -> Int) throws -> Header) rethrowsParameters
- bufferClass:
The class of the object used for storage.
- minimumCapacity:
The minimum number of
Elements that must be able to be stored in the new buffer. - factory:
A function that produces the initial
Headerinstance stored in the buffer, given thebufferobject and a function that can be called on it to get the actual number of allocated elements.