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