Creates an XPC object representing buffer of bytes.
- macOS 10.7+
- Mac Catalyst 13.0+Beta
The buffer of bytes which is to be boxed. You may create an empty data object by passing NULL for this parameter and 0 for the length. Passing NULL with any other length will result in undefined behavior.
The number of bytes which are to be boxed.
A new data object.
This method will copy the buffer given into internal storage. After calling this method, it is safe to dispose of the given buffer.