- public static OutPoint constructor_new(byte[] txid_arg, short index_arg) {
- long ret = bindings.OutPoint_new(txid_arg, index_arg);
- OutPoint ret_hu_conv = new OutPoint(null, ret);
+ /**
+ * Constructs a new OutPoint given each field
+ */
+ public static OutPoint of(byte[] txid_arg, short index_arg) {
+ long ret = bindings.OutPoint_new(InternalUtils.check_arr_len(txid_arg, 32), index_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new OutPoint(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.OutPoint_clone_ptr(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Creates a copy of the OutPoint
+ */
+ public OutPoint clone() {
+ long ret = bindings.OutPoint_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new OutPoint(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);