- public short get_index(OutPoint this_ptr) {
- short ret = bindings.OutPoint_get_index(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * 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);