init(start:count:)
Creates a new buffer pointer over the specified number of contiguous instances beginning at the given pointer.
Declaration
init(start: UnsafePointer<Element>?, count: Int)Parameters
- start:
A pointer to the start of the buffer, or
nil. Ifstartisnil,countmust be zero. However,countmay be zero even for a non-nilstart. The pointer passed asstartmust be aligned toMemoryLayout<Element>.alignment. - count:
The number of instances in the buffer.
countmust not be negative.