- public void set_failure_code(UpdateFailMalformedHTLC this_ptr, short val) {
- bindings.UpdateFailMalformedHTLC_set_failure_code(this_ptr == null ? 0 : 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;