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