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