- public void set_htlc_id(UpdateFailHTLC this_ptr, long val) {
- bindings.UpdateFailHTLC_set_htlc_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The HTLC ID
+ */
+ public void set_htlc_id(long val) {
+ bindings.UpdateFailHTLC_set_htlc_id(this.ptr, val);
+ }
+
+ /**
+ * Creates a copy of the UpdateFailHTLC
+ */
+ public UpdateFailHTLC clone() {
+ long ret = bindings.UpdateFailHTLC_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ UpdateFailHTLC ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UpdateFailHTLC(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;