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