- public long get_htlc_id(UpdateFailHTLC this_ptr) {
- long ret = bindings.UpdateFailHTLC_get_htlc_id(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * Creates a copy of the UpdateFailHTLC
+ */
+ public UpdateFailHTLC clone() {
+ long ret = bindings.UpdateFailHTLC_clone(this.ptr);
+ UpdateFailHTLC ret_hu_conv = new UpdateFailHTLC(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;