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