- public long get_next_remote_commitment_number(ChannelReestablish this_ptr) {
- long ret = bindings.ChannelReestablish_get_next_remote_commitment_number(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * Creates a copy of the ChannelReestablish
+ */
+ public ChannelReestablish clone() {
+ long ret = bindings.ChannelReestablish_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ChannelReestablish ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ChannelReestablish(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;