- public byte[] write(ChannelReestablish obj) {
- byte[] ret = bindings.ChannelReestablish_write(obj == null ? 0 : obj.ptr & ~1);
- this.ptrs_to.add(obj);
+ long clone_ptr() {
+ long ret = bindings.ChannelReestablish_clone_ptr(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;
+ }
+
+ /**
+ * Serialize the ChannelReestablish object into a byte array which can be read by ChannelReestablish_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.ChannelReestablish_write(this.ptr);