Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[ldk-java] / src / main / java / org / ldk / structs / UpdateFailHTLC.java
index 50147508fdcd19a2fc6f618437ef4c2f19f93aff..2c4536e8033d5f8e53434c72295e1b086113eb98 100644 (file)
@@ -38,7 +38,12 @@ public class UpdateFailHTLC extends CommonBase {
                this.ptrs_to.add(this_ptr);
        }
 
-       // Skipped UpdateFailHTLC_write
+       public byte[] write(UpdateFailHTLC obj) {
+               byte[] ret = bindings.UpdateFailHTLC_write(obj == null ? 0 : obj.ptr & ~1);
+               this.ptrs_to.add(obj);
+               return ret;
+       }
+
        public UpdateFailHTLC(byte[] ser) {
                super(bindings.UpdateFailHTLC_read(ser));
        }