- public static HTLCUpdate constructor_clone(HTLCUpdate orig) {
- long ret = bindings.HTLCUpdate_clone(orig == null ? 0 : orig.ptr & ~1);
- HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret);
- ret_hu_conv.ptrs_to.add(orig);
+ /**
+ * Creates a copy of the HTLCUpdate
+ */
+ public HTLCUpdate clone() {
+ long ret = bindings.HTLCUpdate_clone(this.ptr);
+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ HTLCUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new HTLCUpdate(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);