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