Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[ldk-java] / src / main / java / org / ldk / structs / UpdateFulfillHTLC.java
index 5bb0940ac90a5aa8f109d82ab4ba7f4225eafe31..a373425c4767b768a28ae4232683e6ec8a709d1b 100644 (file)
@@ -53,7 +53,12 @@ public class UpdateFulfillHTLC extends CommonBase {
                super(bindings.UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg));
        }
 
-       // Skipped UpdateFulfillHTLC_write
+       public byte[] write(UpdateFulfillHTLC obj) {
+               byte[] ret = bindings.UpdateFulfillHTLC_write(obj == null ? 0 : obj.ptr & ~1);
+               this.ptrs_to.add(obj);
+               return ret;
+       }
+
        public UpdateFulfillHTLC(byte[] ser) {
                super(bindings.UpdateFulfillHTLC_read(ser));
        }