- public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_read(byte[] ser) {
- long ret = bindings.ReplyShortChannelIdsEnd_read(ser);
- Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
+ long clone_ptr() {
+ long ret = bindings.ReplyShortChannelIdsEnd_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * Creates a copy of the ReplyShortChannelIdsEnd
+ */
+ public ReplyShortChannelIdsEnd clone() {
+ long ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr);
+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ ReplyShortChannelIdsEnd ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);