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