xpc_data_get_bytes(_:_:_:_:)
Copies the bytes in a data object into the specified buffer.
Declaration
func xpc_data_get_bytes(_ xdata: xpc_object_t, _ buffer: UnsafeMutableRawPointer, _ off: Int, _ length: Int) -> IntParameters
- xdata:
The data object which is to be examined.
- buffer:
The buffer in which to copy the data object’s bytes.
- off:
The offset at which to begin the copy. If this offset is greater than the length of the data element, nothing is copied. Pass 0 to start the copy at the beginning of the buffer.
- length:
The length of the destination buffer.
Return Value
The number of bytes that were copied into the buffer.