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