Copies a data object’s contents into a given buffer.
On This Page
func getBytes(_ buffer: UnsafeMutableRawPointer)
A buffer into which to copy the receiver's data. The buffer must be at least length bytes.
You can see a sample using this method in Working With Binary Data.