Skip to content

Commit a200dc3

Browse files
committed
Expose a BigEndianScalar_clone method
1 parent b4d8803 commit a200dc3

File tree

1 file changed

+3
-0
lines changed
  • lightning-c-bindings/src/c_types

1 file changed

+3
-0
lines changed

lightning-c-bindings/src/c_types/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ impl BigEndianScalar {
292292
pub extern "C" fn BigEndianScalar_new(big_endian_bytes: ThirtyTwoBytes) -> BigEndianScalar {
293293
BigEndianScalar { big_endian_bytes: big_endian_bytes.data }
294294
}
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() }
295298

296299
#[repr(C)]
297300
#[derive(Copy, Clone)]

0 commit comments

Comments
 (0)