Contents

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) rethrows

Parameters

  • 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 Header instance stored in the buffer, given the buffer object and a function that can be called on it to get the actual number of allocated elements.

Discussion

See Also

Creating a Buffer