- public void set_txid(OutPoint this_ptr, byte[] val) {
- bindings.OutPoint_set_txid(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The index of the referenced output in its transaction's vout.
+ */
+ public void set_index(short val) {
+ bindings.OutPoint_set_index(this.ptr, val);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(val);
+ }
+
+ /**
+ * 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);
+ Reference.reachabilityFence(txid_arg);
+ Reference.reachabilityFence(index_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); }
+ if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };
+ return ret_hu_conv;