init(unsafeBufferObject:)
Manage the given buffer.
init(unsafeBufferObject buffer: AnyObject) Manage the given buffer.
init(unsafeBufferObject buffer: AnyObject) ss20ManagedBufferPointerVsRi__rlE06unsafeB6ObjectAByxq_GyXl_tcfc What are these?9N7GJimport Swift@frozen struct ManagedBufferPointer<Header, Element> where Element : ~CopyableContains a buffer object, and provides access to an instance of Header and contiguous storage for an arbitrary number of Element instances stored in that buffer.
typealias AnyObjectThe protocol to which all classes implicitly conform.
init(bufferClass: AnyClass, minimumCapacity: Int, makingHeaderWith factory: (AnyObject, (AnyObject) -> Int) throws -> Header) rethrows Create with new storage containing an initial Header and space for at least minimumCapacity elements.
var buffer: AnyObject { get }Returns the object instance being used for storage.
var capacity: Int { get }The actual number of elements that can be stored in this object.
var header: Header { get set }The stored Header instance.
static func == (lhs: ManagedBufferPointer<Header, Element>, rhs: ManagedBufferPointer<Header, Element>) -> Bool mutating func isUniqueReference() -> Bool Returns true if self holds the only strong reference to its buffer; otherwise, returns false.
func withUnsafeMutablePointerToElements<E, R>(_ body: (UnsafeMutablePointer<Element>) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable Call body with an UnsafeMutablePointer to the Element storage.
func withUnsafeMutablePointerToHeader<E, R>(_ body: (UnsafeMutablePointer<Header>) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable Call body with an UnsafeMutablePointer to the stored Header.
func withUnsafeMutablePointers<E, R>(_ body: (UnsafeMutablePointer<Header>, UnsafeMutablePointer<Element>) throws(E) -> R) throws(E) -> R where E : Error, R : ~Copyable Call body with UnsafeMutablePointers to the stored Header and raw Element storage.