- public void set_htlc_id(UpdateFailMalformedHTLC this_ptr, long val) {
- bindings.UpdateFailMalformedHTLC_set_htlc_id(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ public void set_failure_code(short val) {
+ bindings.UpdateFailMalformedHTLC_set_failure_code(this.ptr, val);
+ }
+
+ public UpdateFailMalformedHTLC clone() {
+ long ret = bindings.UpdateFailMalformedHTLC_clone(this.ptr);
+ UpdateFailMalformedHTLC ret_hu_conv = new UpdateFailMalformedHTLC(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;