Instance Method
copyToUnsafeMutableBytes(of:)
Copies up to MemoryLayout<T>.size bytes from this Data into the raw memory of value, used to populate opaque C structs such as secp256k1_pubkey and secp256k1_musig_aggnonce.
func copyToUnsafeMutableBytes<T>(of value: inout T)
Parameters
-
value
-
The inout value whose raw bytes are overwritten; only the leading min(self.count, MemoryLayout<T>.size) bytes are written.