- public void set_bitcoin_key_2(UnsignedChannelAnnouncement this_ptr, byte[] val) {
- bindings.UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Creates a copy of the UnsignedChannelAnnouncement
+ */
+ public UnsignedChannelAnnouncement clone() {
+ long ret = bindings.UnsignedChannelAnnouncement_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ UnsignedChannelAnnouncement ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UnsignedChannelAnnouncement(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Serialize the UnsignedChannelAnnouncement object into a byte array which can be read by UnsignedChannelAnnouncement_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.UnsignedChannelAnnouncement_write(this.ptr);
+ return ret;