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