init(_:)
Creates a raw buffer over the contiguous bytes in the given typed buffer.
Declaration
init<T>(_ buffer: UnsafeBufferPointer<T>) where T : ~CopyableParameters
- buffer:
The typed buffer to convert to a raw buffer. The buffer’s type
Tmust be a trivial type.