We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BigEndianScalar_clone
1 parent b4d8803 commit a200dc3Copy full SHA for a200dc3
lightning-c-bindings/src/c_types/mod.rs
@@ -292,6 +292,9 @@ impl BigEndianScalar {
292
pub extern "C" fn BigEndianScalar_new(big_endian_bytes: ThirtyTwoBytes) -> BigEndianScalar {
293
BigEndianScalar { big_endian_bytes: big_endian_bytes.data }
294
}
295
+#[no_mangle]
296
+/// Creates a new BigEndianScalar which has the same data as `orig`
297
+pub extern "C" fn BigEndianScalar_clone(orig: &BigEndianScalar) -> BigEndianScalar { orig.clone() }
298
299
#[repr(C)]
300
#[derive(Copy, Clone)]
0 commit comments