Creates a data buffer with copied memory content using a buffer pointer.
- iOS 7.0+
- macOS 10.9+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
A buffer pointer to copy. The size is calculated from
Creating Populated Data
Creates an empty data buffer.
Creates a new instance of a collection containing the elements of a sequence.
Creates a new data buffer with the specified count of zeroed bytes.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software