init(bytesNoCopy:shape:deallocator:)
Creates a shaped array type from a data pointer.
Declaration
init(bytesNoCopy bytes: UnsafeRawPointer, shape: [Int], deallocator: Data.Deallocator)Parameters
- bytes:
An unsafe raw pointer to the data.
- shape:
An integer array. Each element represents the size of the shaped array’s corresponding dimension.
- deallocator:
A Deallocator.