init(start:count:)
Creates a buffer over the specified number of contiguous bytes starting at the given pointer.
Declaration
init(start: UnsafeRawPointer?, count: Int)Parameters
- start:
The address of the memory that starts the buffer. If
startsisnil,countmust be zero. However,countmay be zero even for a non-nilstart. - count:
The number of bytes to include in the buffer.
countmust not be negative.