- public int get_cltv_expiry(UpdateAddHTLC this_ptr) {
- int ret = bindings.UpdateAddHTLC_get_cltv_expiry(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * Creates a copy of the UpdateAddHTLC
+ */
+ public UpdateAddHTLC clone() {
+ long ret = bindings.UpdateAddHTLC_clone(this.ptr);
+ UpdateAddHTLC ret_hu_conv = new UpdateAddHTLC(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;